feat: enable pwa

This commit is contained in:
Baorong Li
2018-11-14 13:37:34 +08:00
parent 6917d6b89a
commit d71c29ee2e
6 changed files with 33 additions and 8 deletions
+5
View File
@@ -58,6 +58,11 @@ export default {
include: ['dva', 'dva/router', 'dva/saga', 'dva/fetch', 'antd/es'],
},
hardSource: /* isMac */ process.platform === 'darwin',
pwa: {
manifestOptions: {
srcPath: 'manifest.json'
},
}
},
],
],
+20
View File
@@ -0,0 +1,20 @@
{
"name": "Antd-Admin",
"start_url": ".",
"display": "standalone",
"background_color": "#fff",
"description": "A front-end solution for enterprise applications built upon Ant Design and UmiJS",
"icons": [{
"src": "logo48x48.png",
"sizes": "48x48"
}, {
"src": "logo144x144.png",
"sizes": "144x144"
}, {
"src": "logo172x172.png",
"sizes": "172x172"
}],
"related_applications": [{
"platform": "web"
}]
}
+8 -8
View File
@@ -4,9 +4,9 @@
"private": true,
"description": "An admin dashboard application demo built upon Ant Design and UmiJS",
"dependencies": {
"@lingui/react": "^2.7.0",
"@lingui/react": "^2.7.1",
"ant-design-pro": "^2.1.1",
"antd": "^3.10.5",
"antd": "^3.10.7",
"axios": "^0.18.0",
"babel-core": "7.0.0-bridge.0",
"classnames": "^2.2.6",
@@ -28,7 +28,7 @@
"path-to-regexp": "^2.4.0",
"prop-types": "^15.6.2",
"qs": "^6.5.2",
"rc-tween-one": "^2.2.16",
"rc-tween-one": "^2.2.17",
"react-adsense": "^0.0.6",
"react-countup": "^4.0.0-alpha.6",
"react-draft-wysiwyg": "^1.12.13",
@@ -39,9 +39,9 @@
"store": "^2.0.12"
},
"devDependencies": {
"@lingui/babel-preset-react": "^2.7.0",
"@lingui/cli": "^2.7.0",
"@lingui/loader": "^2.7.0",
"@lingui/babel-preset-react": "^2.7.1",
"@lingui/cli": "^2.7.1",
"@lingui/loader": "^2.7.1",
"babel-eslint": "^10.0.1",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-import": "^1.10.0",
@@ -54,12 +54,12 @@
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.1.0",
"husky": "^1.1.3",
"husky": "^1.1.4",
"less-vars-to-js": "^1.3.0",
"lint-staged": "^8.0.4",
"mockjs": "^1.0.1-beta3",
"module": "^1.2.5",
"prettier": "^1.15.1",
"prettier": "^1.15.2",
"stylelint": "^9.8.0",
"stylelint-config-prettier": "^4.0.0",
"stylelint-config-standard": "^18.2.0",
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB