git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Tree: f3c37859051f13d49ec24c5e4b2ddf4e200288aa

Files: f3c37859051f13d49ec24c5e4b2ddf4e200288aa / styles / dark / index.js

565 bytesRaw
1var fs = require('fs')
2var path = require('path')
3var compile = require('micro-css')
4var result = ''
5var additional = ''
6
7fs.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
17const flatpickr = require.resolve('flatpickr/dist/flatpickr.css')
18additional += fs.readFileSync(flatpickr) + '\n'
19
20module.exports = compile(result) + additional
21

Built with git-ssb-web