viniciussalvati / react-app-rewire-sass

Adds SASS to your react-app-rewired
MIT License
1 stars 0 forks source link

react-app-rewire-sass

Adds SASS to your react-app-rewired.

NOT YET TESTED FOR PRODUCTION BUILDS

How this package works

Usage

const react_app_rewired = require('react-app-rewired');

module.exports = require('react-app-rewire-sass')(/* options */);

// or

module.exports = function override(config, env) {

    const rewire = react_app_rewired.compose(
        // ...
        require('react-app-rewire-sass')(/* options */),
        // ...
        // If you're to modify the default css-loader, modify it here
    );

    config = rewire(config, env);

    return config;
};

Customization

You can pass a options object to the builder. The options contains the property [sassOptions], that will be the options passed to the sass-loader.