mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
The browser builder's `styles` and `scripts` options now support using a package name in the path when specifying a style or script. This removes the need to use a relative path to the node modules directory in these options. This provides support for Yarn PnP as well as reducing the complexity of the options especially for monorepo setups. Relatively located files will take precedence over packages if they exist. This precedence provides backwards compatibility with existing configurations. Before : `"styles": ["../node_modules/bootstrap/dist/css/bootstrap.css"]` After: `"styles": ["bootstrap/dist/css/bootstrap.css"]`