adjust the file path

This commit is contained in:
Gabe Yuan
2023-08-04 04:45:20 +08:00
parent 6db5ab0ece
commit b9ee377b7a
43 changed files with 36 additions and 36 deletions

View File

@@ -20,8 +20,8 @@ function override(config, env) {
content: paths.appSrc + "/content.js",
};
// Change output filename template to get rid of hash there
config.output.filename = "static/js/[name].js";
config.output.assetModuleFilename = "static/media/[name][ext]";
config.output.filename = "[name].js";
config.output.assetModuleFilename = "media/[name][ext]";
// Disable built-in SplitChunksPlugin
config.optimization.splitChunks = {
cacheGroups: { default: false },