1
0
mirror of synced 2025-12-13 00:38:05 +08:00

打包调整

This commit is contained in:
qianming
2024-12-30 10:29:20 +08:00
parent 77f899e43c
commit b06f9bb21c

View File

@@ -97,20 +97,11 @@ const webpackConfig = merge(baseWebpackConfig, {
// keep module.id stable when vender modules does not change
new webpack.HashedModuleIdsPlugin(),
// copy custom static assets
/* new CopyWebpackPlugin([{
new CopyWebpackPlugin([{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}])*/
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
]
}),
}])
],
optimization: {
splitChunks: {