Skip to content

Commit 365f0ec

Browse files
committed
* 'master' of https://github.com/mgechev/angular-seed: Specify ENABLE_SCSS setting via environment variable (#1603)
2 parents b3de2c8 + 5d7e5db commit 365f0ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/config/seed.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ export class SeedConfig {
282282
VERSION_NODE = '4.0.0';
283283

284284
/**
285-
* The flag to enable handling of SCSS files
286-
* The default value is false. Override with the '--scss' flag.
285+
* Enable SCSS stylesheet compilation.
286+
* Set ENABLE_SCSS environment variable to 'true' or '1'
287287
* @type {boolean}
288288
*/
289-
ENABLE_SCSS = argv['scss'] || false;
289+
ENABLE_SCSS = ['true', '1'].indexOf(`${process.env.ENABLE_SCSS}`.toLowerCase()) !== -1 || argv['scss'] || false;
290290

291291
/**
292292
* The list of NPM dependcies to be injected in the `index.html`.

0 commit comments

Comments
 (0)