Closed drschwabe closed 8 years ago
Hi @drschwabe,
You can do this in your code:
var styleText = `p { color: green }`;
require('browserify-css').createStyle(styleText);
browser.js: https://github.com/cheton/browserify-css/blob/master/browser.js#L24
package.json: https://github.com/cheton/browserify-css/blob/master/package.json#L6
Perfect!
Would be handy if we could do:
require(
p { color:green })
and have browserify-css do it's thing just like it would do if this was a separate CSS file.