fix: enable cache busting for js files (#285)

uci-hugo-doc
Robert Kaussow 2022-01-13 21:10:45 +01:00 committed by GitHub
parent 3e6dc5e07e
commit 3cc0e5e7ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ var config = {
search: [path.resolve("src", "js", "search.js")]
},
output: {
filename: "js/[name].bundle.min.js",
chunkFilename: "js/[name].chunk.min.js",
filename: "js/[name]-[contenthash:8].bundle.min.js",
chunkFilename: "js/[name]-[contenthash:8].chunk.min.js",
path: path.join(__dirname, "static"),
publicPath: "/",
clean: true