use nuxt-build-optimisations to optimize/cache webpack build

This commit is contained in:
lesion
2021-10-19 16:36:51 +02:00
parent 503370bf6d
commit 2caa8a6295
2 changed files with 2 additions and 20 deletions

View File

@@ -94,6 +94,7 @@ module.exports = {
},
buildModules: [
'nuxt-build-optimisations',
'@nuxtjs/vuetify'
],
vuetify: {
@@ -103,24 +104,4 @@ module.exports = {
/* module options */
},
/*
** Build configuration
*/
build: {
babel: {
// envName: server, client, modern
presets ({ envName }) {
return [
[
'@nuxt/babel-preset-app',
{
corejs: { version: 3 }
}
]
]
},
plugins: [['@babel/plugin-proposal-private-methods', { loose: true }]]
},
cache: true
}
}