refactor(webapp): improve webapp build (#9249)

This commit is contained in:
Ulf Gebhardt 2026-02-20 01:27:15 +01:00 committed by GitHub
parent c269e971f2
commit 0e23f4ec4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,10 +256,12 @@ export default {
: `[contenthash:7]${isModern ? '.modern' : ''}_${CONFIG.VERSION}.js`,
css: ({ isDev }) => (isDev ? '[name].css' : `css/[contenthash:7]_${CONFIG.VERSION}.css`),
},
cache: true,
// babel config
babel: {
// To prevent ERROR [BABEL] Note: The code generator has deoptimised the styling of [..] as it exceeds the max of 500KB.
compact: true,
cacheDirectory: true,
},
/*
** You can extend webpack config here
@ -274,7 +276,7 @@ export default {
}
if (ctx.isClient) {
config.devtool = 'source-map'
config.devtool = ctx.isDev ? 'eval-source-map' : 'hidden-source-map'
}
config.resolve.alias['@@'] = path.resolve(__dirname, `${styleguidePath}/dist`)