提交 e1ef6862 编写于 作者: 杨广俊's avatar 杨广俊

设置

上级 08324ddd
// https://github.com/shelljs/shelljs
require('shelljs/global')
// env.NODE_ENV = 'production'
env.NODE_ENV = 'production'
var path = require('path')
var config = require('../config')
......
......@@ -4,8 +4,7 @@ var path = require('path')
module.exports = {
build: {
env: {
// NODE_ENV: '"production"'
NODE_ENV: '"' + process.env.NODE_ENV + '"'
NODE_ENV: '"production"'
},
index: path.resolve(__dirname, '../dist/index.html'),
assetsRoot: path.resolve(__dirname, '../dist'),
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册