Files: fd8e4bbb6424efcc4479ad97fab770566256b4c4 / lib / build.js
351 bytesRaw
1 | const compile = require('micro-css') |
2 | const fs = require('fs') |
3 | const { join } = require('path') |
4 | |
5 | fs.readFile(join(__dirname, '../index.mcss'), 'utf8', (err, mcss) => { |
6 | if (err) throw err |
7 | |
8 | const css = compile(mcss) |
9 | fs.writeFile(join(__dirname, '../index.css'), css, (err, done) => { |
10 | if (err) throw err |
11 | console.log('mcss compiled') |
12 | }) |
13 | }) |
14 |
Built with git-ssb-web