Skip to content

Commit

Permalink
Production build chunks names as hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dswiecki committed Sep 15, 2021
1 parent 81aaff4 commit 07fc565
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/client/webpack.config.js
Expand Up @@ -82,7 +82,7 @@ module.exports = {
entry: entry,
output: {
path: outputPath,
filename: "[name].js",
filename: isProd ? "[contenthash].js": "[name].js",
},
devtool: isProd ? "hidden-source-map" : "eval-source-map",
devServer: {
Expand Down Expand Up @@ -161,7 +161,6 @@ module.exports = {
}),
new HtmlWebpackPlugin({
title: "Nussknacker",
hash: true,
chunks: ["runtime", "main"],
//see ./config.ts
base: isProd ? "__publicPath__/static/" : "/",
Expand Down

0 comments on commit 07fc565

Please sign in to comment.