Replace app.js with webpack-dev-server (#5797)

This commit is contained in:
Scott Bell
2022-09-30 17:17:02 +02:00
committed by GitHub
parent 35c42ba43d
commit 2bdac56505
25 changed files with 107 additions and 499 deletions

View File

@@ -1,5 +1,13 @@
/* global __dirname */
/* global __dirname module */
/*
This is the OpenMCT common webpack file. It is imported by the other three webpack configurations:
- webpack.prod.js - the production configuration for OpenMCT (default)
- webpack.dev.js - the development configuration for OpenMCT
- webpack.coverage.js - imports webpack.dev.js and adds code coverage
There are separate npm scripts to use these configurations, though simply running `npm install`
will use the default production configuration.
*/
const path = require('path');
const packageDefinition = require('./package.json');
const CopyWebpackPlugin = require('copy-webpack-plugin');
@@ -140,8 +148,13 @@ const config = {
}
]
},
stats: 'errors-warnings'
stats: 'errors-warnings',
performance: {
// We should eventually consider chunking to decrease
// these values
maxEntrypointSize: 25000000,
maxAssetSize: 25000000
}
};
// eslint-disable-next-line no-undef
module.exports = config;