Commit b1579ffa by golton_gao

update: 构建调整

parent b1147ef9
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"semi": true,
"trailingComma": "none",
"bracketSpacing": true
}
......@@ -7,15 +7,15 @@
"scripts": {
"dev": "cross-env PACK_ENV=dev node build/dev-server.js",
"start": "npm run dev",
"build": "node build/build.js",
"build": "npm run build:test",
"build:test": "cross-env PACK_ENV=test node build/build.js",
"build:prod": "cross-env PACK_ENV=product node build/build.js",
"build:report": "npm run build --report"
},
"dependencies": {
"axios": "^0.16.1",
"fastclick": "^1.0.6",
"iscroll": "^5.2.0",
"vconsole": "^3.9.4"
"iscroll": "^5.2.0"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
......@@ -40,11 +40,7 @@
"sinon-chai": "^2.8.0",
"inject-loader": "^3.0.0",
"babel-plugin-istanbul": "^4.1.1",
"phantomjs-prebuilt": "^2.1.14",
"chromedriver": "^2.27.2",
"cross-spawn": "^5.0.1",
"nightwatch": "^0.9.12",
"selenium-server": "^3.0.1",
"less": "^2.7.2",
"opn": "^4.0.2",
"ora": "^1.2.0",
......
......@@ -9,4 +9,8 @@ const config = {
appkey: 'd504275e', // 测试
};
const isProdPack = process.env.PACK_ENV === 'product'
config.baseUrl = isProdPack ? 'https://jffcvp.cndrealty.com:4433/' : 'https://mxytest.cndrealty.com:4433/'
export default Object.assign(config, common);
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 sign in to comment