diff --git a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts index 8345b0accc..182daf4d76 100644 --- a/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts +++ b/packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/styles.ts @@ -207,6 +207,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) { loader: 'less-loader', options: { sourceMap: cssSourceMap, + javascriptEnabled: true, ...lessPathOptions, } }]