Commit 0bc57295 by 李嘉林

打包

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