git ssb

0+

mixmix / marama



Tree: 6dc2c1a4ab70782adb3bd7e9c7dff831c072e153

Files: 6dc2c1a4ab70782adb3bd7e9c7dff831c072e153 / lib / styles-write.js

386 bytesRaw
1const getCSS = require('./styles-compile')
2const fs = require('fs')
3const { join } = require('path')
4
5function 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
16module.exports = buildStyles
17
18if (!module.parent) buildStyles()
19

Built with git-ssb-web