File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
packages/angular_devkit/build_angular/src/webpack/configs Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
38
38
const hashFormat = getOutputHashFormat ( buildOptions . outputHashing as string ) ;
39
39
40
40
// use includePaths from appConfig
41
- const includePaths : string [ ] = [ ] ;
42
- let lessPathOptions : { paths ?: string [ ] } = { } ;
43
-
44
- if (
45
- buildOptions . stylePreprocessorOptions &&
46
- buildOptions . stylePreprocessorOptions . includePaths &&
47
- buildOptions . stylePreprocessorOptions . includePaths . length > 0
48
- ) {
49
- buildOptions . stylePreprocessorOptions . includePaths . forEach ( ( includePath : string ) =>
50
- includePaths . push ( path . resolve ( root , includePath ) ) ,
51
- ) ;
52
- lessPathOptions = {
53
- paths : includePaths ,
54
- } ;
55
- }
41
+ const includePaths = buildOptions . stylePreprocessorOptions ?. includePaths ?. map ( p => path . resolve ( root , p ) ) ?? [ ] ;
56
42
57
43
// Process global styles.
58
44
if ( buildOptions . styles . length > 0 ) {
@@ -138,7 +124,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
138
124
sourceMap : cssSourceMap ,
139
125
lessOptions : {
140
126
javascriptEnabled : true ,
141
- ... lessPathOptions ,
127
+ paths : includePaths ,
142
128
} ,
143
129
} ,
144
130
} ,
You can’t perform that action at this time.
0 commit comments