git ssb

10+

Matt McKegg / patchwork



Tree: a5f9e9c80b3948d0c40559bef2b6be37e82fcd6d

Files: a5f9e9c80b3948d0c40559bef2b6be37e82fcd6d / styles / index.js

450 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
17module.exports = compile(result) + additional
18

Built with git-ssb-web