Commit 2abc3463 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-admin]: 执行"cnpm run build:prod"失败。

原因是NODE_ENV不只是描述信息,更是编译的开关。
目前webpack的NODE_ENV好像只能支持development和production。
不过,vue-element-admin可以通过相同production下面的不同ENV_CONFIG来支持不同配置。
parent 17e8a86b
module.exports = {
NODE_ENV: '"deploy"',
NODE_ENV: '"production"',
ENV_CONFIG: '"dep"',
BASE_API: '"http://122.152.206.172:8083/admin"',
OS_API: '"http://122.152.206.172:8081/os"'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment