0.1.1 • Published 6 years ago
react-app-rewire-less-and-css-modules v0.1.1
Rewire create-react-app to use LESS and LESS-modules!
This repository is fork react-app-rewrite-less
Install
$ npm install --save react-app-rewire-less-and-css-modules
Add it to your project
- Rewire your app than modify
config-overrides.js
const rewireLess = require('react-app-rewire-less-and-css-modules');
/* config-overrides.js */
module.exports = function override(config, env) {
config = rewireLess(config, env);
// with loaderOptions
// config = rewireLess.withLoaderOptions(someLoaderOptions)(config, env);
return config;
}