From c49d11a6e2d21fffb97606686d237f9c0250380f Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 12 Oct 2020 14:19:16 +0100 Subject: Correct build path and add hash to generated filenames --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js index 62bc4c5..0fe45da 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,8 +7,8 @@ module.exports = (env) => { entry: "./src/index.tsx", mode: env, output: { - path: path.resolve(__dirname, "build/js"), - filename: "[name].bundle.js", + path: path.resolve(__dirname, "build"), + filename: "[name].[contenthash].bundle.js", publicPath: "/", devtoolModuleFilenameTemplate: "file:///" + path.resolve(__dirname, "[resource-path]?[loaders]") }, -- cgit v1.2.3