commerce-cloud-sass-helper

0.0.1 • Public • Published

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)$/,
        }]
    }
}

Package Sidebar

Install

npm i commerce-cloud-sass-helper

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

3.34 kB

Total Files

4

Last publish

Collaborators

  • mikehanssen