Skip to content

Commit 6b45099

Browse files
committed
feat(SASSPlugin): Allow regexes to be passed to include/exclude certain file patterns
Allow passing in cacheInclude and cacheExclude as options to the SASSPlugin, primarily so that filenames beginning with an underscore can be ignored during SASS/SCSS compilation, which is generally accepted to be a standard in SASS (http://sass-lang.com/guide#topic-4). These config values can be set in angular-cli-build.js thus: "sassCompiler": { "cacheExclude": [/\/_[^\/]+$/] } This arguably closes issue #558 (#558)
1 parent 88c77d6 commit 6b45099

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/broccoli/angular-broccoli-sass.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ class SASSPlugin extends Plugin {
1818

1919
options = options || {};
2020
Plugin.call(this, inputNodes, {
21-
cacheInclude: [/\.scss$/, /\.sass$/]
21+
cacheInclude: options.cacheInclude || [/\.scss$/, /\.sass$/],
22+
cacheExclude: options.cacheExclude || undefined
2223
});
2324
this.options = options;
2425
}

0 commit comments

Comments
 (0)