File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,22 @@ task('copy-json', () => {
72
72
} ) ;
73
73
74
74
task ( 'styles-global' , ( ) => {
75
- return src ( 'styles/styles.scss' ) . pipe ( sass ( ) . on ( 'error' , sass . logError ) ) . pipe ( dest ( 'styles' ) ) ;
75
+ return src ( 'styles/styles.scss' )
76
+ . pipe (
77
+ sass ( {
78
+ includePaths : [ 'node_modules' ] ,
79
+ } ) . on ( 'error' , sass . logError ) ,
80
+ )
81
+ . pipe ( dest ( 'styles' ) ) ;
76
82
} ) ;
77
83
78
84
task ( 'styles-components' , ( ) => {
79
85
return src ( [ `src/**/*.scss` , `!src/**/__stories__/**/*.scss` , '!src/widget/**/*.scss' ] )
80
- . pipe ( sass ( ) . on ( 'error' , sass . logError ) )
86
+ . pipe (
87
+ sass ( {
88
+ includePaths : [ 'node_modules' ] ,
89
+ } ) . on ( 'error' , sass . logError ) ,
90
+ )
81
91
. pipe ( dest ( path . resolve ( BUILD_CLIENT_DIR , ESM_DIR ) ) )
82
92
. pipe ( dest ( path . resolve ( BUILD_CLIENT_DIR , CJS_DIR ) ) ) ;
83
93
} ) ;
You can’t perform that action at this time.
0 commit comments