From 189ae058f819221064a75188ab98f37c747ef1ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Tue, 25 Sep 2018 11:21:45 +0800 Subject: [PATCH] fix #2279 add umi-plugin-ga --- .ga | 3 --- config/config.js | 6 ++++++ package.json | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 .ga diff --git a/.ga b/.ga deleted file mode 100644 index ac35de79..00000000 --- a/.ga +++ /dev/null @@ -1,3 +0,0 @@ -{ - "code":"UA-72788897-6" -} diff --git a/config/config.js b/config/config.js index 978ee3e9..3e2dfa47 100644 --- a/config/config.js +++ b/config/config.js @@ -34,6 +34,12 @@ export default { : {}), }, ], + [ + 'umi-plugin-ga', + { + code: 'UA-72788897-6', + }, + ], ], define: { APP_TYPE: process.env.APP_TYPE || '', diff --git a/package.json b/package.json index a096033f..0f856a8f 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,8 @@ "stylelint-config-prettier": "^4.0.0", "stylelint-config-standard": "^18.0.0", "umi": "^2.0.1", - "umi-plugin-react": "^1.0.1" + "umi-plugin-react": "^1.0.1", + "umi-plugin-ga": "^1.0.2" }, "optionalDependencies": { "puppeteer": "^1.6.0" -- GitLab