mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Adjust webpack config for esbuild-loader v3
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
846f5b3716
commit
b5de88afd1
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ const htmlexport = require('./webpack.htmlexport')
|
||||||
const { merge } = require('webpack-merge')
|
const { merge } = require('webpack-merge')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin')
|
||||||
const { ESBuildMinifyPlugin } = require('esbuild-loader')
|
const { EsbuildPlugin } = require('esbuild-loader')
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
merge(common, {
|
merge(common, {
|
||||||
|
@ -15,7 +15,7 @@ module.exports = [
|
||||||
},
|
},
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new ESBuildMinifyPlugin({
|
new EsbuildPlugin({
|
||||||
target: 'es2015',
|
target: 'es2015',
|
||||||
exclude: ['MathJax/extensions/a11y/mathmaps']
|
exclude: ['MathJax/extensions/a11y/mathmaps']
|
||||||
})
|
})
|
||||||
|
@ -30,7 +30,7 @@ module.exports = [
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
optimization: {
|
optimization: {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new ESBuildMinifyPlugin({
|
new EsbuildPlugin({
|
||||||
target: 'es2015'
|
target: 'es2015'
|
||||||
}),
|
}),
|
||||||
new OptimizeCSSAssetsPlugin({})
|
new OptimizeCSSAssetsPlugin({})
|
||||||
|
|
Loading…
Reference in a new issue