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
f5029451
Commit
f5029451
authored
May 27, 2021
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix config
parent
04a9a692
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
build/webpack.prod.conf.js
+7
-1
package.json
+1
-1
project.config.json
+2
-2
src/App.vue
+1
-1
No files found.
build/webpack.prod.conf.js
View file @
f5029451
...
...
@@ -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
}
}
}))
}
...
...
package.json
View file @
f5029451
...
...
@@ -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"
,
...
...
project.config.json
View file @
f5029451
...
...
@@ -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"
:
"wx
8a509d2f2ac15903
"
,
"appid"
:
"wx
ae95a07ffdf11548
"
,
"projectname"
:
"mayi-mp-shop"
,
"simulatorType"
:
"wechat"
,
"simulatorPluginLibVersion"
:
{},
...
...
src/App.vue
View file @
f5029451
...
...
@@ -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
};
}
...
...
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