mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 11:44:05 +08:00
When a Less stylesheet is detected to require the deprecated `javascriptEnabled` Less option, the option is enabled for the stylesheet and a warning is issued to inform the user of the behavior change. The Less `javascriptEnabled` option has been deprecated and disabled by default since Less v3 (https://github.com/less/less.js/releases/tag/v3.0.0). When enabled, the `javascriptEnabled` option allows JavaScript within Less stylesheets to be executed at build time. Less option reference: https://lesscss.org/usage/#less-options This provides similar behavior to the default Webpack-based build system. However, the Webpack-based build system currently unconditionally enables the option.