aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-12 14:19:16 +0100
committerGravatar Joe Banks <[email protected]>2020-10-12 14:19:16 +0100
commitc49d11a6e2d21fffb97606686d237f9c0250380f (patch)
tree1b8650b7848ef9e7aa584af3f4b9f2cebba1ea0b /webpack.config.js
parentUpdate build path (diff)
Correct build path and add hash to generated filenames
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
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]")
},