# webpack-less-theme-plugin **Repository Path**: mirrors_yesmeck/webpack-less-theme-plugin ## Basic Information - **Project Name**: webpack-less-theme-plugin - **Description**: Inject less variables to your less file. Support HMR. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webpack-less-theme-plugin Inject less variables to your less file. Support HMR. ## Installation ```bash $ npm i webpack-less-theme-plugin --save-dev ``` ## Usage Add to webpack config. ```javascript // webpack.config.js const LessThemePlugin = require('webpack-less-theme-plugin'); module.exports = { ..., plugins: [ new LessThemePlugin({ theme: './blue.less' }), ], }; ``` ```less // blue.less @primary-color: blue; ``` ## Options - `test` - webpack's [Condation.rule](https://webpack.js.org/configuration/module/#condition). Default is `/\.less$/`. - `theme` - less theme file. - `cwd` - Current working dir. ## License MIT