Skip to content

Commit

Permalink
feat(npm-scripts): provide a flag to disable sass
Browse files Browse the repository at this point in the history
  • Loading branch information
izaera committed Apr 18, 2024
1 parent 55ba9fd commit 7786305
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/npm-tools/packages/npm-scripts/src/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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')`
Expand Down

0 comments on commit 7786305

Please sign in to comment.