git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: abef5a74d4b427f7a36f20b1be7dc85b9f22080a

Files: abef5a74d4b427f7a36f20b1be7dc85b9f22080a / styles / index.js

550 bytesRaw
1var fs = require('fs')
2var path = require('path')
3var compile = require('micro-css')
4var result = ''
5var additional = ''
6
7additional += fs.readFileSync(require.resolve('patchbay/style.css'), 'utf8')
8
9fs.readdirSync(__dirname).forEach(function (file) {
10 if (/\.mcss$/i.test(file)) {
11 result += fs.readFileSync(path.resolve(__dirname, file), 'utf8') + '\n'
12 }
13
14 if (/\.css$/i.test(file)) {
15 console.log(file)
16 additional += fs.readFileSync(path.resolve(__dirname, file), 'utf8') + '\n'
17 }
18})
19
20module.exports = compile(result) + additional
21

Built with git-ssb-web