1.0.11 • Published 5 years ago
@xwl7001/react-static-plugin-less v1.0.11
react-static-plugin-less
A React-Static plugin that adds loader and SSR support for LESS
Installation
In an existing react-static site run:
$ yarn add @xwl7001/react-static-plugin-less
Then add the plugin to your static.config.js
:
export default {
plugins: ["@xwl7001/react-static-plugin-less"]
};
With Options
export default {
plugins: [
[
"@xwl7001/react-static-plugin-less",
{
includePaths: ["..."], // always includes `src/`
sourceMap: true,
javascriptEnabled: true,
// modifyVars: themeVariables,
// other options for the less-loader
}
]
]
};