Files: 9744d260b89e1e2afac37b36c0973c99040adefd / styles / index.js
528 bytesRaw
1 | var fs = require('fs') |
2 | var path = require('path') |
3 | var compile = require('micro-css') |
4 | var result = '' |
5 | var additional = '' |
6 | |
7 | additional += fs.readFileSync(require.resolve('patchbay/style.css'), 'utf8') |
8 | |
9 | fs.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 | additional += fs.readFileSync(path.resolve(__dirname, file), 'utf8') + '\n' |
16 | } |
17 | }) |
18 | |
19 | module.exports = compile(result) + additional |
20 |
Built with git-ssb-web