diff --git a/projects/npm-tools/packages/npm-scripts/src/scripts/build.js b/projects/npm-tools/packages/npm-scripts/src/scripts/build.js index 9600010c4..94390eee4 100644 --- a/projects/npm-tools/packages/npm-scripts/src/scripts/build.js +++ b/projects/npm-tools/packages/npm-scripts/src/scripts/build.js @@ -102,6 +102,7 @@ const ROOT_CONFIGS = [ * ".npmbridgerc" and "webpack.config.js" files, respectively, are * present. * `minify()` is run unless `NODE_ENV` is `development`. + * Sass is run unless disable flag is set. */ module.exports = async function (...args) { const bnd = parseBnd(); @@ -304,7 +305,7 @@ module.exports = async function (...args) { } } - if (inputPathExists) { + if (inputPathExists && BUILD_CONFIG.sass !== false) { if (useCache) { log( `BUILD SASS: Using cache, no changes detected. (To remove cache, run 'yarn build --clean')`