diff --git a/package.json b/package.json index 5d0701e..af95d32 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vue.config.js b/vue.config.js index b886fe6..1ea789f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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, }