Skip to content

Commit 990e847

Browse files
committed
fix(@angular-devkit/build-angular): force less version 3.5 math behaviour
In version 4, LESS did a breaking change that set `parens-division` as the default math setting. With this change we change the behavior to mimic version 3.5. See: https://github.com/less/less.js/releases/tag/v4.0.0 **Note**: In Angular CLI version 12, the math setting will be the default provided by the LESS compiler in v4.0.0 Closes #20088
1 parent 9c19ca4 commit 990e847

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
129129
implementation: require('less'),
130130
sourceMap: cssSourceMap,
131131
lessOptions: {
132+
math: 'always',
132133
javascriptEnabled: true,
133134
paths: includePaths,
134135
},

0 commit comments

Comments
 (0)