From 814005021c5d8e61988bffa9f5970e0713d86787 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Tue, 9 Oct 2018 10:25:21 +0300 Subject: [PATCH] Add hash to the static JS/CSS Closes #354 --- client/webpack.common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/webpack.common.js b/client/webpack.common.js index 77539e44..d1cfa6d0 100644 --- a/client/webpack.common.js +++ b/client/webpack.common.js @@ -19,7 +19,7 @@ const config = { }, output: { path: PUBLIC_PATH, - filename: '[name].js', + filename: '[name].[chunkhash].js', }, resolve: { modules: ['node_modules'], @@ -94,10 +94,11 @@ const config = { }), new HtmlWebpackPlugin({ inject: true, + cache: false, template: HTML_PATH, }), new ExtractTextPlugin({ - filename: '[name].css', + filename: '[name].[contenthash].css', }), ], };