Commit 7bf5ec33ab5ac86937dc5fc28941ed05996aeddd
export fela combineRules and enhance
Michael Williams committed on 3/6/2017, 2:30:57 AMParent: 3a95a21b8e899da6f90863d40d2ff5639d63c9c6
Files changed
css/index.js | changed |
css/index.js | |||
---|---|---|---|
@@ -1,7 +1,7 @@ | |||
1 | 1 … | const nest = require('depnest') | |
2 | 2 … | const assign = require('object-assign') | |
3 | -const { createRenderer } = require('fela') | ||
3 … | +const { createRenderer, combineRules, enhance } = require('fela') | ||
4 | 4 … | const { render } = require('fela-dom') | |
5 | 5 … | const devPlugins = require('fela-preset-dev') | |
6 | 6 … | const webPlugins = require('fela-preset-web') | |
7 | 7 … | ||
@@ -30,13 +30,15 @@ | |||
30 | 30 … | //...(api.config.all().nodeDev === 'development' ? devPlugins : []) | |
31 | 31 … | ...devPlugins | |
32 | 32 … | ] | |
33 | 33 … | }), | |
34 | - render: (mountNode) => render(api.css.renderer(), mountNode), | ||
34 … | + combineRules, | ||
35 … | + enhance, | ||
35 | 36 … | renderer: () => { | |
36 | 37 … | if (!renderer) renderer = createRenderer(api.css.config()) | |
37 | 38 … | return renderer | |
38 | 39 … | }, | |
40 … | + render: (mountNode) => render(api.css.renderer(), mountNode), | ||
39 | 41 … | renderRule: (rule, props) => { | |
40 | 42 … | return api.css.renderer().renderRule(rule, props) | |
41 | 43 … | }, | |
42 | 44 … | renderKeyframe: (keyframe, props) => { | |
Built with git-ssb-web