Skip to content

Commit

Permalink
support webpack optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty-key committed Mar 1, 2024
1 parent 9fdfb3d commit c887994
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/reshowcase
Original file line number Diff line number Diff line change
Expand Up @@ -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 : []),
Expand Down

0 comments on commit c887994

Please sign in to comment.