Commit e69b4130 by 程默

添加test环境打包 添加form扫码类型

parent 6e64390d
require('./check-versions')()
process.env.NODE_ENV = 'production'
// process.env.NODE_ENV = 'production'
process.env.PLATFORM = process.argv[process.argv.length - 1] || 'wx'
var ora = require('ora')
......
......@@ -28,9 +28,11 @@ var fileExtConfig = {
}
var fileExt = fileExtConfig[process.env.PLATFORM]
console.log('node_dev',process.env.NODE_ENV)
module.exports = {
build: {
env: require('./prod.env'),
env: process.env.NODE_ENV=='production'?require('./prod.env'): require('./dev.env'),
index: path.resolve(__dirname, `../dist/${fileExt.platform}/index.html`),
assetsRoot: path.resolve(__dirname, `../dist/${fileExt.platform}`),
assetsSubDirectory: '',
......
......@@ -6,9 +6,10 @@
"author": "chengmo <cheng.mo@mayi888.com>",
"private": true,
"scripts": {
"dev:wx": "node build/dev-server.js wx",
"dev:wx": "cross-env NODE_ENV=development node build/dev-server.js wx",
"start:wx": "npm run dev:wx",
"build:wx": "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",
"dev:swan": "node build/dev-server.js swan",
"start:swan": "npm run dev:swan",
"build:swan": "node build/build.js swan",
......@@ -24,7 +25,7 @@
},
"dependencies": {
"flyio": "^0.6.14",
"mayi-analytics": "^1.1.12",
"mayi-analytics": "^1.1.14",
"mpvue": "^2.0.0",
"vuex": "^3.0.1"
},
......@@ -38,6 +39,7 @@
"chalk": "^2.4.0",
"connect-history-api-fallback": "^1.3.0",
"copy-webpack-plugin": "^4.5.1",
"cross-env": "^7.0.2",
"css-loader": "^0.28.11",
"cssnano": "^3.10.0",
"eventsource-polyfill": "^0.9.6",
......
......@@ -210,6 +210,10 @@ export default {
}else if(querys[0] == 'giftView'){
this.page = `/giftCoupon/preview`;
this.params+=`&id=${querys[1]}`
}else if(querys[0] == 'form'){//问卷调查
this.page = `/smartForm`;
this.params+=`&formId=${querys[1]}`;
this.params += this.paramsHander(querys,3)
}
}
console.log(querys, "scene");
......
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