mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] TGUI 5.0 (#7700)
Co-authored-by: Selis <sirlionfur@hotmail.de> Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
@@ -24,14 +24,13 @@ const createStats = (verbose) => ({
|
||||
version: verbose,
|
||||
});
|
||||
|
||||
// prettier-ignore
|
||||
module.exports = (env = {}, argv) => {
|
||||
const mode = argv.mode || 'production';
|
||||
const bench = env.TGUI_BENCH;
|
||||
const config = {
|
||||
mode: mode === 'production' ? 'production' : 'development',
|
||||
context: path.resolve(__dirname),
|
||||
target: ['web', 'es3', 'browserslist:ie 8'],
|
||||
target: ['web', 'es5', 'browserslist:ie 11'],
|
||||
entry: {
|
||||
'tgui': ['./packages/tgui-polyfill', './packages/tgui'],
|
||||
'tgui-panel': ['./packages/tgui-polyfill', './packages/tgui-panel'],
|
||||
@@ -129,7 +128,7 @@ module.exports = (env = {}, argv) => {
|
||||
const { EsbuildPlugin } = require('esbuild-loader');
|
||||
config.optimization.minimizer = [
|
||||
new EsbuildPlugin({
|
||||
target: 'ie8',
|
||||
target: 'ie11',
|
||||
css: true,
|
||||
}),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user