Commit de7b8371 by 程默

fix config

parent fa37823f
...@@ -52,7 +52,7 @@ module.exports = { ...@@ -52,7 +52,7 @@ module.exports = {
fileExt: fileExt fileExt: fileExt
}, },
dev: { dev: {
env: require('./dev.env'), env: process.env.NODE_ENV=='production'?require('./prod.env'): require('./dev.env'),
port: 8080, port: 8080,
// 在小程序开发者工具中不需要自动打开浏览器 // 在小程序开发者工具中不需要自动打开浏览器
autoOpenBrowser: false, autoOpenBrowser: false,
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev:wx": "cross-env NODE_ENV=development node build/dev-server.js wx", "dev:wx": "cross-env NODE_ENV=development node build/dev-server.js wx",
"pro": "cross-env NODE_ENV=production node build/dev-server.js wx",
"start:wx": "npm run dev:wx", "start:wx": "npm run dev:wx",
"build:wx": "cross-env NODE_ENV=production node build/build.js wx", "build:wx": "cross-env NODE_ENV=production node build/build.js wx",
"test:wx": "cross-env NODE_ENV=development node build/build.js wx", "test:wx": "cross-env NODE_ENV=development node build/build.js wx",
......
{
"condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": [
{
"id": 0,
"name": "pages/index/main",
"pathName": "pages/index/main",
"query": "",
"scene": null
},
{
"id": -1,
"name": "pages/login/main",
"pathName": "pages/login/main",
"query": "",
"scene": null
},
{
"id": 2,
"name": "pages/index/main",
"pathName": "pages/index/main",
"query": "scene=pid_6141",
"scene": 1047
},
{
"name": "第三方",
"pathName": "pages/wxArticle/main",
"query": "",
"scene": null
}
]
}
}
}
\ No newline at end of file
Markdown is supported
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