Use prod mode when generating build
parent
52babc22fb
commit
d68d4ae583
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue