mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
use nuxt-build-optimisations to optimize/cache webpack build
This commit is contained in:
parent
503370bf6d
commit
2caa8a6295
2 changed files with 2 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
"microformat-node": "^2.0.1",
|
||||
"mkdirp": "^1.0.4",
|
||||
"multer": "^1.4.3",
|
||||
"nuxt-build-optimisations": "^1.0.7",
|
||||
"nuxt-edge": "^2.16.0-27226092.034b9901",
|
||||
"nuxt-express-module": "^0.0.11",
|
||||
"pg": "^8.6.0",
|
||||
|
|
Loading…
Reference in a new issue