css-type-loader
v1.1.2
Published
react/redux utils for less boilerplate
Downloads
91
Maintainers
Readme
css-type-loader
css type loader for genrate .d.ts file for css module.
Installation
npm install css-type-loader
How to use
Add css-type-loader directly after css-loader in your webpack config.
module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [
'css-type-loader',
{
loader: 'css-loader',
options: {
modules: true,
camelCase: true // this is required for convert dashs to camelCase
}
}
]
}
]
}
};
Propose of this repo
- To generate types thats vaild syntax in Typescirpt
- To sync with the newest css-loader