Files: c9b9aaff45c41f7c8e37d7a7ae14f6f679ee9c54 / styles / dark / index.js
565 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 | fs.readdirSync(__dirname).forEach(function (file) { |
8 | if (/\.mcss$/i.test(file)) { |
9 | result += fs.readFileSync(path.resolve(__dirname, file), 'utf8') + '\n' |
10 | } |
11 | |
12 | if (/\.css$/i.test(file)) { |
13 | additional += fs.readFileSync(path.resolve(__dirname, file), 'utf8') + '\n' |
14 | } |
15 | }) |
16 | |
17 | const flatpickr = require.resolve('flatpickr/dist/flatpickr.css') |
18 | additional += fs.readFileSync(flatpickr) + '\n' |
19 | |
20 | module.exports = compile(result) + additional |
21 |
Built with git-ssb-web