Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): force less version 3.5 math behav…
Browse files Browse the repository at this point in the history
…iour

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
  • Loading branch information
alan-agius4 committed Feb 19, 2021
1 parent 9c19ca4 commit 990e847
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
implementation: require('less'),
sourceMap: cssSourceMap,
lessOptions: {
math: 'always',
javascriptEnabled: true,
paths: includePaths,
},
Expand Down

0 comments on commit 990e847

Please sign in to comment.