Use prod mode when generating build

pull/880/head
Cagatay Civici 2021-01-18 15:40:12 +03:00
parent 52babc22fb
commit d68d4ae583
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build-app": "vue-cli-service build", "build-app": "vue-cli-service build",
"build-lib": "rollup -c && node build-meta && gulp build-styles", "build-lib": "NODE_ENV=production rollup -c && node build-meta && gulp build-styles",
"lint": "vue-cli-service lint", "lint": "vue-cli-service lint",
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit"
}, },

View File

@ -2,6 +2,8 @@ import vue from 'rollup-plugin-vue';
import postcss from 'rollup-plugin-postcss'; import postcss from 'rollup-plugin-postcss';
import { terser } from 'rollup-plugin-terser'; import { terser } from 'rollup-plugin-terser';
console.log(process.env.NODE_ENV);
const fs = require('fs-extra'); const fs = require('fs-extra');
const path = require('path'); const path = require('path');