INFRA: Update Webpack to @latest, along with other dev packages (#290)

This commit is contained in:
David Walker
2023-01-05 17:29:02 -08:00
committed by GitHub
parent a76e281349
commit c42fde9379
5 changed files with 2833 additions and 12258 deletions
+5 -5
View File
@@ -28,8 +28,10 @@ module.exports = (env, argv) => {
const devServerSettings = {
hot: true,
port: 8000,
publicPath: `/`,
stats: statsConfig,
devMiddleware: {
publicPath: `/`,
stats: statsConfig,
},
};
// By default, the webpack-dev-server is not exposed outside of localhost.
@@ -165,13 +167,10 @@ module.exports = (env, argv) => {
removeEmptyChunks: true,
mergeDuplicateChunks: true,
flagIncludedChunks: true,
occurrenceOrder: true,
sideEffects: true,
providedExports: true,
usedExports: true,
concatenateModules: false,
namedModules: false,
namedChunks: false,
minimize: !isDevelopment,
portableRecords: true,
splitChunks: {
@@ -191,6 +190,7 @@ module.exports = (env, argv) => {
"@player": path.resolve(__dirname, "src/Player"),
"@nsdefs": path.resolve(__dirname, "src/ScriptEditor/NetscriptDefinitions.d.ts"),
},
fallback: { crypto: false },
},
stats: statsConfig,
};