Skip to content

Commit

Permalink
fix: Build configuration to use cozy-notifications in production
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Mar 1, 2024
1 parent 9d63bc4 commit c231bc5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config/webpack.target.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const path = require('path')
const webpack = require('webpack')
const MomentLocalesPlugin = require('moment-locales-webpack-plugin')
const TerserPlugin = require('terser-webpack-plugin')

const SRC_DIR = path.resolve(__dirname, '../src')

Expand Down Expand Up @@ -48,7 +49,18 @@ module.exports = {
exprContextRegExp: /$^/,
exprContextCritical: false
},

optimization: {
minimizer: [
new TerserPlugin({
parallel: true,
terserOptions: {
mangle: {
keep_fnames: true
}
}
})
]
},
resolve: {
alias: {
// We are building with target: node as webpack options. This causes webpack
Expand Down

0 comments on commit c231bc5

Please sign in to comment.