From 09281c70ea84447edcfb0c79eefdac5b7e631f4a 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 --- 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 aae14af6663c..b4f991b5e9a7 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -124,9 +124,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` - +