1.0.1 • Published 7 years ago
typed-css v1.0.1
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
Getting started
- install
npm i -D typed-css
// or if you prefer yarn
yarn add -D typed-css
- 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 } ),
]
}
- enjoy!