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 Jun 5, 2024
1 parent 5bfea8d commit 3752f13
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 @@ -38,6 +38,7 @@ const CWD = process.cwd();
* ".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 @@ -146,7 +147,7 @@ module.exports = async function (...args) {
);
}

if (inputPathExists) {
if (inputPathExists && BUILD_CONFIG.sass !== false) {
buildSass(path.join(CWD, BUILD_CONFIG.input), {
imports: BUILD_CONFIG.sassIncludePaths,
outputDir: BUILD_CONFIG.output,
Expand Down

0 comments on commit 3752f13

Please sign in to comment.