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
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 2 additions and 20 deletions

View file

@ -94,6 +94,7 @@ module.exports = {
}, },
buildModules: [ buildModules: [
'nuxt-build-optimisations',
'@nuxtjs/vuetify' '@nuxtjs/vuetify'
], ],
vuetify: { vuetify: {
@ -103,24 +104,4 @@ module.exports = {
/* module options */ /* 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
}
} }

View file

@ -50,6 +50,7 @@
"microformat-node": "^2.0.1", "microformat-node": "^2.0.1",
"mkdirp": "^1.0.4", "mkdirp": "^1.0.4",
"multer": "^1.4.3", "multer": "^1.4.3",
"nuxt-build-optimisations": "^1.0.7",
"nuxt-edge": "^2.16.0-27226092.034b9901", "nuxt-edge": "^2.16.0-27226092.034b9901",
"nuxt-express-module": "^0.0.11", "nuxt-express-module": "^0.0.11",
"pg": "^8.6.0", "pg": "^8.6.0",