From 0e23f4ec4e5575ee115157815fc768b579741efd Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 20 Feb 2026 01:27:15 +0100 Subject: [PATCH] refactor(webapp): improve webapp build (#9249) --- webapp/nuxt.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index 032504292..02edbf9dc 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -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`)