Fix OOM errors during compilation
Disabled "modern" builds because they significantly increase memory consumption. Disabled type checker during production builds.
This commit is contained in:
parent
cfb7bf26c1
commit
89ccba3201
2 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"build": "vue-cli-service build --no-module",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"test": "npm run test:unit",
|
||||
"lint:js": "vue-cli-service lint --no-fix",
|
||||
|
|
|
@ -11,6 +11,10 @@ module.exports = {
|
|||
reactivityTransform: true,
|
||||
}
|
||||
})
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
// Type checker consumes too much memory
|
||||
config.plugins.delete("fork-ts-checker")
|
||||
}
|
||||
},
|
||||
lintOnSave: false,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue