Commit 941f868 authored and committed Sep 22, 2017 Unverified
1 parent b90825c commit 941f868 Copy full SHA for 941f868
File tree 1 file changed +5
-1
lines changed
packages/@angular/cli/models/webpack-configs
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,17 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
97
97
98
98
// use includePaths from appConfig
99
99
const includePaths : string [ ] = [ ] ;
100
+ let lessPathOptions : { paths : string [ ] } ;
100
101
101
102
if ( appConfig . stylePreprocessorOptions
102
103
&& appConfig . stylePreprocessorOptions . includePaths
103
104
&& appConfig . stylePreprocessorOptions . includePaths . length > 0
104
105
) {
105
106
appConfig . stylePreprocessorOptions . includePaths . forEach ( ( includePath : string ) =>
106
107
includePaths . push ( path . resolve ( appRoot , includePath ) ) ) ;
108
+ lessPathOptions = {
109
+ paths : includePaths ,
110
+ } ;
107
111
}
108
112
109
113
// process global styles
@@ -136,7 +140,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
136
140
loader : 'less-loader' ,
137
141
options : {
138
142
sourceMap : cssSourceMap ,
139
- paths : includePaths
143
+ ... lessPathOptions ,
140
144
}
141
145
} ]
142
146
} ,
You can’t perform that action at this time.
0 commit comments