webpack-less-theme-plugin
Inject less variables to your less file. Support HMR.
Installation
$ npm i webpack-less-theme-plugin --save-dev
Usage
Add to webpack config.
// webpack.config.jsconst LessThemePlugin = ; moduleexports = ... plugins: theme: './blue.less' ;
// blue.less @primary-color: blue;
Options
test
- webpack's Condation.rule. Default is/\.less$/
.theme
- less theme file.cwd
- Current working dir.
License
MIT