Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
0bc57295
Commit
0bc57295
authored
Jul 07, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
2ca794d3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
+21
-11
build/webpack.dev.conf.js
+9
-9
build/webpack.prod.conf.js
+9
-0
src/App.vue
+3
-2
No files found.
build/webpack.dev.conf.js
View file @
0bc57295
...
...
@@ -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
...
...
build/webpack.prod.conf.js
View file @
0bc57295
...
...
@@ -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')
...
...
src/App.vue
View file @
0bc57295
...
...
@@ -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
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment