1.0.1 • Published 7 years ago

typed-css v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

typed-css

a webpack plugin that automatically generates definition files from css (or less) files when using css-modules. Currently, only :local is supportive.

Screenshot

Screenshot.png

Getting started

  1. install
npm i -D typed-css
// or if you prefer yarn
yarn add -D typed-css
  1. add it to plugins in webpack configuration
const typedCss = require('typed-css');

module.exports = {
    entry: ''
    // balabala
    plugins: [
        /**
        * set it to false if you omit extensions when importing css. i.e. you use `require('myStyle')` instead of `require('myStyle.css')` 
        */
        new typedCss( { reserveExtension: true } ),
    ]
}
  1. enjoy!