Skip to content

xwl7001/react-static-plugin-less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      }
    ]
  ]
};

About

A React-Static plugin that adds SSR support for LESS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published