react-rewire-less
v1.1.11
Published
less
Downloads
27
Readme
react-rewire-less
Usage
- 默认使用:
import { compose } from "react-rewired-scripts";
import rewireLess from "react-rewire-less";
export default compose(rewireLess);
- 可配置选项:
import { compose } from "react-rewired-scripts";
import rewireLess from "react-rewire-less";
export default compose(
rewireLess.withOptions({
// less-loader 可配置的选项...
// https://github.com/webpack-contrib/less-loader
// 额外选项cssModule配置选项
localIdentName: "[local]___[hash:base64:5]",
camelCase: true
})
);
说明
下面的扩展文件会启用cssModules
模式
- *.module.less
- *.module.css