Latest commit 425e343 Sep 1, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md update doc for v1.3.4 Oct 29, 2017
index.js fallback for when loader is missing (#300) Sep 1, 2018
package.json bump Sep 1, 2018

README.md

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