Files: 6dc2c1a4ab70782adb3bd7e9c7dff831c072e153 / lib / styles-write.js
386 bytesRaw
1 | const getCSS = require('./styles-compile') |
2 | const fs = require('fs') |
3 | const { join } = require('path') |
4 | |
5 | function buildStyles () { |
6 | getCSS((err, css) => { |
7 | if (err) throw err |
8 | |
9 | fs.writeFile(join(__dirname, '../marama.css'), css, (err, done) => { |
10 | if (err) throw err |
11 | console.log('mcss built') |
12 | }) |
13 | }) |
14 | } |
15 | |
16 | module.exports = buildStyles |
17 | |
18 | if (!module.parent) buildStyles() |
19 |
Built with git-ssb-web