1.0.3 • Published 6 years ago

jstocss-loader v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

This readme is for jstocss-loader

NPM Status Build Status Build Status

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;