react-app-rewire-less

2.1.3 • Public • Published

Rewire create-react-app to use LESS!

You might not need this rewire, Create React App added guide about how to add Less support to CRA without the need of ejecting. See Adding a CSS Preprocessor section of CRA guide. Also note, that their solution is based on compiling Less without using Webpack.

Install

$ npm install --save react-app-rewire-less

Add it to your project

const rewireLess = require('react-app-rewire-less');
 
/* config-overrides.js */
module.exports = function override(config, env) {
  config = rewireLess(config, env);
  // with loaderOptions
  // config = rewireLess.withLoaderOptions(someLoaderOptions)(config, env);
  return config;
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.1.3782latest
1.0.0-alpha.14f8d3d10canary

Version History

VersionDownloads (Last 7 Days)Published
2.1.3782
2.1.219
2.1.114
2.1.046
2.0.90
2.0.80
2.0.70
2.0.60
2.0.50
2.0.40
2.0.30
2.0.13
1.0.0-alpha.14f8d3d10
1.0.00

Package Sidebar

Install

npm i react-app-rewire-less

Weekly Downloads

864

Version

2.1.3

License

MIT

Unpacked Size

3.05 kB

Total Files

3

Last publish

Collaborators

  • timarney