diff options
| author | 2020-10-12 14:19:16 +0100 | |
|---|---|---|
| committer | 2020-10-12 14:19:16 +0100 | |
| commit | c49d11a6e2d21fffb97606686d237f9c0250380f (patch) | |
| tree | 1b8650b7848ef9e7aa584af3f4b9f2cebba1ea0b | |
| parent | Update build path (diff) | |
Correct build path and add hash to generated filenames
| -rw-r--r-- | webpack.config.js | 4 | 
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]")      }, | 
