2.1.3 • Published 6 years ago

react-app-rewire-stylus v2.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Rewire create-react-app to use Stylus!

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-stylus

Add it to your project

const rewireStylus = require('react-app-rewire-stylus');

/* config-overrides.js */
module.exports = function override(config, env) {
  config = rewireStylus(config, env);
  // with loaderOptions
  // config = rewireStylus.withLoaderOptions(someLoaderOptions)(config, env);
  return config;
}