Files: b820672852d31940a46c7ac613f5f5c0195f65b8 / app / sync / initialize / styles.js
442 bytesRaw
1 | const nest = require('depnest') |
2 | const insertCss = require('insert-css') |
3 | const values = require('lodash/values') |
4 | |
5 | exports.gives = nest('app.sync.initialize') |
6 | |
7 | exports.needs = nest({ |
8 | 'styles.css': 'reduce' |
9 | }) |
10 | |
11 | exports.create = (api) => { |
12 | return nest({ |
13 | 'app.sync.initialize': function initializeStyles () { |
14 | console.log('> initialise: styles') |
15 | const css = values(api.styles.css()).join('\n') |
16 | insertCss(css) |
17 | } |
18 | }) |
19 | } |
20 |
Built with git-ssb-web