@angular-devkit/build-angular 13.2.5 → 13.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,16 +4,16 @@ This package contains [Architect builders](/packages/angular_devkit/architect/RE
4
4
 
5
5
  ## Builders
6
6
 
7
- | Name | Description |
8
- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
9
- | app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell). |
10
- | browser | Build an Angular application targeting a browser environment. |
11
- | dev-server | A development server that provides live reloading. |
12
- | extract-i18n | Extract i18n messages from an Angular application. |
13
- | karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
14
- | ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/preview) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
15
- | server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
16
- | protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
7
+ | Name | Description |
8
+ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9
+ | app-shell | Build an Angular [App shell](https://angular.io/guide/app-shell). |
10
+ | browser | Build an Angular application targeting a browser environment. |
11
+ | dev-server | A development server that provides live reloading. |
12
+ | extract-i18n | Extract i18n messages from an Angular application. |
13
+ | karma | Execute unit tests using [Karma](https://github.com/karma-runner/karma) test runner. |
14
+ | ng-packagr | Build and package an Angular library in [Angular Package Format (APF)](https://angular.io/guide/angular-package-format) format using [ng-packagr](https://github.com/ng-packagr/ng-packagr). |
15
+ | server | Build an Angular application targeting a [Node.js](https://nodejs.org) environment. |
16
+ | protractor | **Deprecated** - Run end-to-end tests using [Protractor](https://www.protractortest.org/) framework. |
17
17
 
18
18
  ## Disclaimer
19
19
 
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-angular",
3
- "version": "13.2.5",
3
+ "version": "13.2.6",
4
4
  "description": "Angular Webpack Build Facade",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
7
7
  "builders": "builders.json",
8
8
  "dependencies": {
9
9
  "@ampproject/remapping": "1.1.1",
10
- "@angular-devkit/architect": "0.1302.5",
11
- "@angular-devkit/build-webpack": "0.1302.5",
12
- "@angular-devkit/core": "13.2.5",
10
+ "@angular-devkit/architect": "0.1302.6",
11
+ "@angular-devkit/build-webpack": "0.1302.6",
12
+ "@angular-devkit/core": "13.2.6",
13
13
  "@babel/core": "7.16.12",
14
14
  "@babel/generator": "7.16.8",
15
15
  "@babel/helper-annotate-as-pure": "7.16.7",
@@ -20,7 +20,7 @@
20
20
  "@babel/runtime": "7.16.7",
21
21
  "@babel/template": "7.16.7",
22
22
  "@discoveryjs/json-ext": "0.5.6",
23
- "@ngtools/webpack": "13.2.5",
23
+ "@ngtools/webpack": "13.2.6",
24
24
  "ansi-colors": "4.1.1",
25
25
  "babel-loader": "8.2.3",
26
26
  "babel-plugin-istanbul": "6.1.1",
@@ -141,8 +141,7 @@
141
141
  },
142
142
  "resourcesOutputPath": {
143
143
  "type": "string",
144
- "description": "The path where style resources will be placed, relative to outputPath.",
145
- "default": ""
144
+ "description": "The path where style resources will be placed, relative to outputPath."
146
145
  },
147
146
  "aot": {
148
147
  "type": "boolean",
@@ -74,8 +74,7 @@
74
74
  },
75
75
  "resourcesOutputPath": {
76
76
  "type": "string",
77
- "description": "The path where style resources will be placed, relative to outputPath.",
78
- "default": ""
77
+ "description": "The path where style resources will be placed, relative to outputPath."
79
78
  },
80
79
  "sourceMap": {
81
80
  "description": "Output source maps for scripts and styles. For more information, see https://angular.io/guide/workspace-config#source-map-configuration.",
@@ -24,6 +24,11 @@ class NamedChunksPlugin {
24
24
  if (chunk.name) {
25
25
  return;
26
26
  }
27
+ if ([...chunk.files.values()].every((f) => f.endsWith('.css'))) {
28
+ // If all chunk files are CSS files skip.
29
+ // This happens when using `import('./styles.css')` in a lazy loaded module.
30
+ return undefined;
31
+ }
27
32
  const name = this.generateName(chunk);
28
33
  if (name) {
29
34
  chunk.name = name;