Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
bd0e5ae1
Commit
bd0e5ae1
authored
Oct 26, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2672, use APP_TYPE judge add ga
parent
bc12d814
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
38 deletions
+43
-38
config/config.js
config/config.js
+43
-38
No files found.
config/config.js
View file @
bd0e5ae1
...
@@ -4,9 +4,7 @@ import pageRoutes from './router.config';
...
@@ -4,9 +4,7 @@ import pageRoutes from './router.config';
import
webpackPlugin
from
'
./plugin.config
'
;
import
webpackPlugin
from
'
./plugin.config
'
;
import
defaultSettings
from
'
../src/defaultSettings
'
;
import
defaultSettings
from
'
../src/defaultSettings
'
;
export
default
{
const
plugins
=
[
// add for transfer to umi
plugins
:
[
[
[
'
umi-plugin-react
'
,
'
umi-plugin-react
'
,
{
{
...
@@ -36,14 +34,21 @@ export default {
...
@@ -36,14 +34,21 @@ export default {
:
{}),
:
{}),
},
},
],
],
[
];
// judge add ga
if
(
process
.
env
.
APP_TYPE
===
'
site
'
)
{
plugins
.
push
([
'
umi-plugin-ga
'
,
'
umi-plugin-ga
'
,
{
{
code
:
'
UA-72788897-6
'
,
code
:
'
UA-72788897-6
'
,
judge
:
()
=>
process
.
env
.
APP_TYPE
===
'
site
'
,
},
},
],
]);
],
}
export
default
{
// add for transfer to umi
plugins
,
targets
:
{
targets
:
{
ie
:
11
,
ie
:
11
,
},
},
...
@@ -95,7 +100,7 @@ export default {
...
@@ -95,7 +100,7 @@ export default {
},
},
},
},
manifest
:
{
manifest
:
{
basePath
:
"
/
"
basePath
:
'
/
'
,
},
},
chainWebpack
:
webpackPlugin
,
chainWebpack
:
webpackPlugin
,
...
...
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