@angular-devkit/build-webpack 0.803.0-next.2 → 0.803.2

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-webpack",
3
- "version": "0.803.0-next.2",
3
+ "version": "0.803.2",
4
4
  "description": "Webpack Builder for Architect",
5
5
  "experimental": true,
6
6
  "main": "src/index.js",
7
7
  "typings": "src/index.d.ts",
8
8
  "builders": "builders.json",
9
9
  "dependencies": {
10
- "@angular-devkit/architect": "0.803.0-next.2",
11
- "@angular-devkit/core": "8.3.0-next.2",
10
+ "@angular-devkit/architect": "0.803.2",
11
+ "@angular-devkit/core": "8.3.2",
12
12
  "rxjs": "6.4.0",
13
13
  "webpack-merge": "4.2.1"
14
14
  },
package/src/utils.d.ts CHANGED
@@ -10,6 +10,7 @@ export interface EmittedFiles {
10
10
  name?: string;
11
11
  file: string;
12
12
  initial: boolean;
13
+ asset?: boolean;
13
14
  extension: string;
14
15
  }
15
16
  export declare function getEmittedFiles(compilation: webpack.compilation.Compilation): EmittedFiles[];
package/src/utils.js CHANGED
@@ -31,7 +31,7 @@ function getEmittedFiles(compilation) {
31
31
  }
32
32
  // other all files
33
33
  for (const file of Object.keys(compilation.assets)) {
34
- files.push({ file, extension: path.extname(file), initial: false });
34
+ files.push({ file, extension: path.extname(file), initial: false, asset: true });
35
35
  }
36
36
  // dedupe
37
37
  return files.filter(({ file, name }, index) => files.findIndex(f => f.file === file && (!name || name === f.name)) === index);