mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] tgui 516 (#10158)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
021ac2b32d
commit
bb759b294c
@@ -29,7 +29,7 @@ module.exports = (env = {}, argv) => {
|
||||
const config = {
|
||||
mode: mode === 'production' ? 'production' : 'development',
|
||||
context: path.resolve(__dirname),
|
||||
target: ['web', 'es5', 'browserslist:ie 11'],
|
||||
target: ['web', 'browserslist:last 2 Edge versions'],
|
||||
entry: {
|
||||
tgui: ['./packages/tgui-polyfill', './packages/tgui'],
|
||||
'tgui-panel': ['./packages/tgui-polyfill', './packages/tgui-panel'],
|
||||
@@ -129,17 +129,6 @@ module.exports = (env = {}, argv) => {
|
||||
};
|
||||
}
|
||||
|
||||
// Production build specific options
|
||||
if (mode === 'production') {
|
||||
const { EsbuildPlugin } = require('esbuild-loader');
|
||||
config.optimization.minimizer = [
|
||||
new EsbuildPlugin({
|
||||
target: 'ie11',
|
||||
css: true,
|
||||
}),
|
||||
];
|
||||
}
|
||||
|
||||
// Development build specific options
|
||||
if (mode !== 'production') {
|
||||
config.devtool = 'cheap-module-source-map';
|
||||
|
||||
Reference in New Issue
Block a user