From 30cc48250faa004700037f2baa5b728227867016 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Wed, 26 Oct 2016 14:14:28 +0100 Subject: [PATCH] fix(build): enable chunkhash in inline.js We had CommonsChunkPlugin misconfigured to remove the chunkhash in inline.js. Partially address #2307 Close #2899 --- packages/angular-cli/models/webpack-build-common.ts | 4 +--- tests/e2e/tests/third-party/bootstrap.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index bbeb89f02d81..c2c90f91f1e5 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -107,9 +107,7 @@ export function getWebpackCommonConfig( }), new webpack.optimize.CommonsChunkPlugin({ minChunks: Infinity, - name: 'inline', - filename: 'inline.js', - sourceMapFilename: 'inline.map' + name: 'inline' }), new GlobCopyWebpackPlugin({ patterns: appConfig.assets, diff --git a/tests/e2e/tests/third-party/bootstrap.ts b/tests/e2e/tests/third-party/bootstrap.ts index 803bcb8e5d02..68e015c6f474 100644 --- a/tests/e2e/tests/third-party/bootstrap.ts +++ b/tests/e2e/tests/third-party/bootstrap.ts @@ -22,7 +22,7 @@ export default function() { .then(() => expectFileToMatch('dist/scripts.bundle.js', '/*!\\n * Bootstrap')) .then(() => expectFileToMatch('dist/styles.bundle.js', '/*!\\n * Bootstrap')) .then(() => expectFileToMatch('dist/index.html', oneLineTrim` - +