0.0.1 • Published 5 years ago

commerce-cloud-sass-helper v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Commerce Cloud Sass Helper

Unfortunatly by default the sgmf-scripts only support scss files for SASS compilation and not sass files. This helper can be used to retrieve all sass files from the file directory and compile them as well.

Installation

Install the helper and modify the root webpack.config. In the header make sure to include the sassFiles using the helper. In the scss compilation section make sure to update the entry section to include the sassFiles gathered by the helper and add sass to the rules.

var sassFiles = require('commerce-cloud-sass-helper').createSassPath();
{
    entry: {...scssFiles, ...sassFiles},
    module: {
        rules: [{
            test: /\.(sass|scss)$/,
        }]
    }
}