From c8879947ff06faec8c024cb055fa9c8d22715458 Mon Sep 17 00:00:00 2001 From: Rusty Key Date: Fri, 1 Mar 2024 18:21:26 +0000 Subject: [PATCH] support webpack optimization --- commands/reshowcase | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/reshowcase b/commands/reshowcase index cba5e4b..c1c9f5a 100755 --- a/commands/reshowcase +++ b/commands/reshowcase @@ -94,10 +94,12 @@ const compiler = webpack({ }, output: { path: outputPath, - filename: "reshowcase[fullhash].js", + filename: "reshowcase-[name]-[fullhash].js", globalObject: "this", chunkLoadingGlobal: "reshowcase__d", + chunkFilename: '[id].[chunkhash].js' }, + optimization: config.optimization, module: config.module, plugins: [ ...(config.plugins ? config.plugins : []),