Esbuild (#10940)
* ci: add minimum GitHub token permissions for workflows Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io> * feat: use esbuild for minification Co-authored-by: Ashish Kurmi <akurmi@stepsecurity.io>isekai-main
parent
dd4e9cce09
commit
ba484d5478
@ -1,8 +1,19 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { merge } = require('webpack-merge');
|
const { merge } = require('webpack-merge');
|
||||||
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
|
|
||||||
const common = require('./webpack.common');
|
const common = require('./webpack.common');
|
||||||
|
|
||||||
module.exports = merge(common, {
|
module.exports = merge(common, {
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
optimization: {
|
||||||
|
minimize: true,
|
||||||
|
minimizer: [
|
||||||
|
new TerserPlugin({
|
||||||
|
minify: TerserPlugin.esbuildMinify,
|
||||||
|
terserOptions: {},
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue