File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,22 @@ class SASSPlugin extends Plugin {
2525 }
2626
2727 build ( ) {
28+ let sassFileEndings = this . options [ 'sass-files' ] || [ '.sass' , '.scss' ] ;
29+
2830 this . listFiles ( ) . forEach ( fileName => {
2931 // Normalize is necessary for changing `\`s into `/`s on windows.
30- this . compile ( path . normalize ( fileName ) ,
31- path . normalize ( this . inputPaths [ 0 ] ) ,
32- path . normalize ( this . outputPath ) ) ;
32+ let found = false ;
33+ sassFileEndings . forEach ( ending => {
34+ found = found || fileName . endsWith ( ending ) ;
35+ } ) ;
36+
37+ if ( found ) {
38+ this . compile ( path . normalize ( fileName ) ,
39+ path . normalize ( this . inputPaths [ 0 ] ) ,
40+ path . normalize ( this . outputPath ) ) ;
41+ }
3342 } ) ;
43+
3444 }
3545
3646 compile ( fileName , inputPath , outputPath ) {
You can’t perform that action at this time.
0 commit comments