react-static-plugin-less

7.6.2 • Public • Published

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 react-static-plugin-less

Then add the plugin to your static.config.js:

export default {
  plugins: ["react-static-plugin-less"]
};

With Options

export default {
  plugins: [
    [
      "react-static-plugin-less",
      {
        includePaths: ["..."] // always includes `src/`
        cssLoaderOptions: {}, // options for the css-loader, like modules
        // other options for the less-loader
      }
    ]
  ]
};

Readme

Keywords

none

Package Sidebar

Install

npm i react-static-plugin-less

Weekly Downloads

0

Version

7.6.2

License

MIT

Unpacked Size

10.9 kB

Total Files

6

Last publish

Collaborators

  • tannerlinsley
  • sleeplessbyte
  • leekad