From f0c9a1e7f4d32dcc59337cc50cc42edb67708b11 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Tue, 11 Dec 2018 19:31:38 -0800 Subject: [PATCH] ui: Add chunk hash to static js file name --- ui/package-lock.json | 28 +++++++++++++++++++++------- ui/public/index.html | 3 +++ ui/webpack.config.js | 2 +- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 9052dd8..bca7622 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -3245,12 +3245,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3265,17 +3267,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3392,7 +3397,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3404,6 +3410,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3418,6 +3425,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3425,12 +3433,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -3449,6 +3459,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3529,7 +3540,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3541,6 +3553,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3662,6 +3675,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", diff --git a/ui/public/index.html b/ui/public/index.html index 4def5dc..9c8f8ad 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -5,6 +5,9 @@ + + + Inbucket diff --git a/ui/webpack.config.js b/ui/webpack.config.js index c68f747..6e1323c 100644 --- a/ui/webpack.config.js +++ b/ui/webpack.config.js @@ -5,7 +5,7 @@ module.exports = (env, argv) => { const production = argv.mode === 'production' const config = { output: { - filename: 'static/[name].js', + filename: 'static/[name].[hash:8].js', publicPath: '/', }, module: {