mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Merge pull request #351 from kopelli/webpack-optimization
Webpack optimization
This commit is contained in:
commit
79a489d7a9
@ -88,7 +88,8 @@ the following rules:
|
||||
the changes to the UI
|
||||
- If your changes affect Netscript, provide some
|
||||
scripts that can be used to test the Netscript changes.
|
||||
- Do not check in the bundled engine (dist\engine.bundle.js)
|
||||
- Do not check in any bundled files (`dist\*.bundle.js`). These will be
|
||||
updated as part of official releases.
|
||||
|
||||
## As a Documentor
|
||||
To contribute to BitBurner documentation, you will need to have Python
|
||||
|
624
dist/vendor.bundle.js
vendored
Normal file
624
dist/vendor.bundle.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -950,6 +950,7 @@
|
||||
<div class="loaderspinner"></div>
|
||||
<div class="loaderlabel">Loading Bitburner...</div>
|
||||
</div>
|
||||
<script src="dist/vendor.bundle.js"></script>
|
||||
<script src="dist/engine.bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -42,13 +42,22 @@ module.exports = (env, argv) => ({
|
||||
flagIncludedChunks: true,
|
||||
occurrenceOrder: true,
|
||||
sideEffects: true,
|
||||
providedExports: false,
|
||||
usedExports: false,
|
||||
providedExports: true,
|
||||
usedExports: true,
|
||||
concatenateModules: false,
|
||||
namedModules: false,
|
||||
namedChunks: false,
|
||||
minimize: false,
|
||||
portableRecords: true
|
||||
minimize: argv.mode !== 'development',
|
||||
portableRecords: true,
|
||||
splitChunks: {
|
||||
cacheGroups: {
|
||||
vendor: {
|
||||
test: /[\\/]node_modules[\\/]/,
|
||||
name: 'dist/vendor',
|
||||
chunks: 'all'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
devServer: {
|
||||
publicPath: "/dist",
|
||||
|
Loading…
Reference in New Issue
Block a user