git ssb

16+

Dominic / patchbay



Tree: 4ed25d0653cf7fe85f8e3eb411723ec297f60638

Files: 4ed25d0653cf7fe85f8e3eb411723ec297f60638 / app / mcss / render.js

564 bytesRaw
1const compile = require('micro-css')
2const fs = require('fs')
3const Path = require('path')
4
5module.exports = {
6 gives: {
7 mcss: true,
8 css: true,
9 styles: true
10 },
11 needs: {
12 mcss: 'map',
13 css: 'map'
14 },
15 create: function (api) {
16 var styles = ''
17 process.nextTick(function () {
18 const mcss = api.mcss().join('\n')
19 const css = api.css().join('\n')
20 styles = coreStyle + compile(mcss) + css
21 })
22
23 return {
24 styles: () => styles,
25 // export empty styles
26 mcss: () => '',
27 css: () => ''
28 }
29 }
30}
31

Built with git-ssb-web