git ssb

1+

dinoworm 🐛 / catstack



Commit 7bf5ec33ab5ac86937dc5fc28941ed05996aeddd

export fela combineRules and enhance

Michael Williams committed on 3/6/2017, 2:30:57 AM
Parent: 3a95a21b8e899da6f90863d40d2ff5639d63c9c6

Files changed

css/index.jschanged
css/index.jsView
@@ -1,7 +1,7 @@
11 const nest = require('depnest')
22 const assign = require('object-assign')
3-const { createRenderer } = require('fela')
3 +const { createRenderer, combineRules, enhance } = require('fela')
44 const { render } = require('fela-dom')
55 const devPlugins = require('fela-preset-dev')
66 const webPlugins = require('fela-preset-web')
77
@@ -30,13 +30,15 @@
3030 //...(api.config.all().nodeDev === 'development' ? devPlugins : [])
3131 ...devPlugins
3232 ]
3333 }),
34- render: (mountNode) => render(api.css.renderer(), mountNode),
34 + combineRules,
35 + enhance,
3536 renderer: () => {
3637 if (!renderer) renderer = createRenderer(api.css.config())
3738 return renderer
3839 },
40 + render: (mountNode) => render(api.css.renderer(), mountNode),
3941 renderRule: (rule, props) => {
4042 return api.css.renderer().renderRule(rule, props)
4143 },
4244 renderKeyframe: (keyframe, props) => {

Built with git-ssb-web