Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Repository files navigation

jss-css loader

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.

Install

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

Usage

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"
  }
}
*/

About

Webpack loader to wrap jss-css module

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages