Commit 0bc57295 by 李嘉林

打包

parent 2ca794d3
......@@ -40,15 +40,15 @@ module.exports = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': config.dev.env
}),
// new webpack.LoaderOptionsPlugin({
// // test: /\.js/,
// // options: {
// // optimization: {
// // usedExports: true
// // },
// // }
// minimize: true,
// }),
new webpack.LoaderOptionsPlugin({
// test: /\.js/,
// options: {
// optimization: {
// usedExports: true
// },
// }
minimize: true,
}),
// copy from ./webpack.prod.conf.js
// extract css into its own file
......
......@@ -32,6 +32,15 @@ var webpackConfig = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': env
}),
new webpack.LoaderOptionsPlugin({
// test: /\.js/,
// options: {
// optimization: {
// usedExports: true
// },
// }
minimize: true,
}),
// extract css into its own file
new ExtractTextPlugin({
// filename: utils.assetsPath('[name].[contenthash].css')
......
......@@ -15,8 +15,8 @@ export default {
console.log(extConfig, "-----------extConfig");
if (JSON.stringify(extConfig) == "{}") {
let shopItem = {
// development: { mixid: "ssa", "shopid": 2342}, //五粮液uat
development: { mixid: "antgood", "shopid": 67},
development: { mixid: "ssa", "shopid": 2342}, //五粮液uat
// development: { mixid: "antgood", "shopid": 67},
production: { "mixid":"qiyeCT", "shopid": 1045 }, // 道可
// production: { "mixid":"metasense_doctors", "shopid": 1238 }, // 册为医护端
// production: { "mixid":"3QqsFT", "shopid": 1337 },
......@@ -194,6 +194,7 @@ export default {
async getShopInfo({ mixid }) {
await shop.getShopInfo({ shopMixId: mixid }).then((res) => {
console.log("--app---getShopInfo")
console.log(process.env.MANALYTICS_HOST,'-process.env.MANALYTICS_HOST')
if (res.data.code == 200) {
// 收集用户数据
this.$mpBehavior.init("mayi-moblie-shop-mp", res.data.data.id, {
......
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