jstocss-loader
v1.0.3
Published
Learn to write a webpack loader
Downloads
1
Maintainers
Readme
This readme is for jstocss-loader
Notes: Issues with the output should be reported on the babel issue tracker.
jstocss-loader
A loader for webpack which transforms js into css.
Getting Started
To begin, you'll need to install jstocss-loader;
$ npm install --save-dev jstocss-loader
How to use
you should add new file lick css.jscss and write
let 'app .css' = {
type: clas,
color: "#fff"
}
let app2 = {
type: clas,
background: blue,
color: red
}
let c = {
type: id,
color: blue
}
By use jstocss-loader it will be
.app .css{color: #fff}.app2{background: blue}.app2{color: red}#c{color: blue}
Add in your head style sheet. if you style sheet id is styles_js it will be merge.
this loader not support scoped;