commerce-cloud-sass-helper
v0.0.1
Published
Retrieves all sass files in a Commerce Cloud cartridge
Downloads
8
Maintainers
Readme
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)$/,
}]
}
}