diff --git a/package.json b/package.json index 1d158af..94327be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@netcentric/fe-build", - "version": "5.0.0", + "version": "5.0.1", "description": "Frontend build tools for AEM projects.", "license": "Apache-2.0", "author": "Cognizant Netcentric (https://www.netcentric.biz)", diff --git a/utils/renderSass.js b/utils/renderSass.js index 59260e2..608ea75 100644 --- a/utils/renderSass.js +++ b/utils/renderSass.js @@ -6,7 +6,7 @@ const { log } = require('./log'); module.exports = function renderSass(dest, file, config, cb, write = false) { // extract sass only configs - const { outputStyle, includePaths, failOnError } = config.sass; + const { outputStyle, includePaths, failOnError, ...sassConfigOptions } = config.sass; // proper extension const destFile = dest.replace('.scss', '.css'); @@ -20,7 +20,8 @@ module.exports = function renderSass(dest, file, config, cb, write = false) { outputStyle, includePaths, outFile, - sourceMap: !config.general.isProduction + sourceMap: !config.general.isProduction, + ...sassConfigOptions }, (error, result) => { // log if there are any errors if (error) {