Commit f5029451 by 程默

fix config

parent 04a9a692
......@@ -113,7 +113,13 @@ if (config.build.bundleAnalyzerReport) {
var useUglifyJs = process.env.PLATFORM !== 'swan'
if (useUglifyJs) {
webpackConfig.plugins.push(new UglifyJsPlugin({
sourceMap: true
sourceMap: true,
uglifyOptions: {
compress: {
warnings: false,
drop_console: true
}
}
}))
}
......
......@@ -7,7 +7,7 @@
"private": true,
"scripts": {
"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",
"pro:wx": "cross-env NODE_ENV=production node build/dev-server.js wx",
"start:wx": "npm run dev: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",
......
......@@ -5,6 +5,7 @@
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
......@@ -24,7 +25,6 @@
"disablePlugins": [],
"outputPath": ""
},
"bundle": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
......@@ -35,7 +35,7 @@
},
"miniprogramRoot": "dist/wx/",
"compileType": "miniprogram",
"appid": "wx8a509d2f2ac15903",
"appid": "wxae95a07ffdf11548",
"projectname": "mayi-mp-shop",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
......
......@@ -11,7 +11,7 @@ export default {
let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
console.log(extConfig, "-----------extConfig");
if (JSON.stringify(extConfig) == "{}") {
extConfig = process.env.NODE_ENV == "development" ? { mixid: "antgood", shopid: 67}:{ mixid: "xyyx",shopid:133 };
extConfig = process.env.NODE_ENV == "development" ? { mixid: "antgood", shopid: 67}:{ "mixid":"qiyeCT", "shopid":1045 };
}
......
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