0.0.5 • Published 5 years ago

jss-css-loader v0.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

This is a webpack loader to wrap the jss-css module so you can write regular css files and import them to use as jss.

npm install --save-dev jss-css-loader

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.jss-css$/,
        use: ["jss-css-loader"],
      },
    ],
  },
};

file.jss-css

.myFlair {
  background: #f00;
}

file.js

import styles from "file.jss-css";

console.log(styles);
/*
{
  "myFlair": {
    "background": "#f00"
  }
}
*/
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

6 years ago

0.0.1

6 years ago