mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Split preact into separate webpack chunk
This commit is contained in:
@@ -83,6 +83,17 @@ module.exports = (env) => ({
|
||||
, chunks: [ "ui/options/bundle" ]
|
||||
})
|
||||
]
|
||||
, optimization: {
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/](preact|preact\/compat)[\\/]/
|
||||
, name: "vendor"
|
||||
, chunks: "initial"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
, module: {
|
||||
rules: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user