mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Move off deprecated uglifyjs-webpack-plugin
This commit is contained in:
parent
524549df30
commit
03a2082bc2
3 changed files with 289 additions and 114 deletions
|
|
@ -1,5 +1,5 @@
|
|||
const path = require('path');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const TerserPlugin = require('terser-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
|
|
@ -19,10 +19,11 @@ module.exports = {
|
|||
module: {
|
||||
rules: [{
|
||||
test: /\.css$/,
|
||||
use: [ 'style-loader', 'css-loader' ]
|
||||
use: ['style-loader', 'css-loader']
|
||||
}]
|
||||
},
|
||||
plugins: [
|
||||
new UglifyJSPlugin()
|
||||
],
|
||||
optimization: {
|
||||
minimize: true,
|
||||
minimizer: [new TerserPlugin()],
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue