1.4.2 • Published 6 years ago

inferno-app-rewire-less v1.4.2

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

Rewire create-inferno-app to use LESS!

You might not need this rewire, Create inferno App added guide about how to add Less support to CIA 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 inferno-app-rewire-less

Add it to your project

const rewireLess = require('inferno-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;
}