mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
[chore, doc] Split out the "vendor"/3rd party code to its own bundle
Included 'vendor.bundle.js' as it is referenced. So this will give a baseline to compare against future builds. But ideally this will only change when updating dependency versions.
This commit is contained in:
+10
-1
@@ -48,7 +48,16 @@ module.exports = (env, argv) => ({
|
||||
namedModules: false,
|
||||
namedChunks: false,
|
||||
minimize: argv.mode !== 'development',
|
||||
portableRecords: true
|
||||
portableRecords: true,
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: 'dist/vendor',
|
||||
chunks: 'all'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
devServer: {
|
||||
publicPath: "/dist",
|
||||
|
||||
Reference in New Issue
Block a user