fix: enable cache busting for js files (#285)
parent
3e6dc5e07e
commit
3cc0e5e7ab
|
@ -24,8 +24,8 @@ var config = {
|
||||||
search: [path.resolve("src", "js", "search.js")]
|
search: [path.resolve("src", "js", "search.js")]
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: "js/[name].bundle.min.js",
|
filename: "js/[name]-[contenthash:8].bundle.min.js",
|
||||||
chunkFilename: "js/[name].chunk.min.js",
|
chunkFilename: "js/[name]-[contenthash:8].chunk.min.js",
|
||||||
path: path.join(__dirname, "static"),
|
path: path.join(__dirname, "static"),
|
||||||
publicPath: "/",
|
publicPath: "/",
|
||||||
clean: true
|
clean: true
|
||||||
|
|
Loading…
Reference in New Issue