Commit f5029451 by 程默

fix config

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