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
fc1ac964
Commit
fc1ac964
authored
Jul 19, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "migrate to umi@2-beta"
This reverts commit
5c2df04b
.
parent
9ed1581a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
config/config.js
config/config.js
+11
-11
package.json
package.json
+6
-3
src/pages/document.ejs
src/pages/document.ejs
+4
-2
No files found.
config/config.js
View file @
fc1ac964
...
...
@@ -7,17 +7,8 @@ const path = require('path');
export
default
{
// add for transfer to umi
plugins
:
[
[
'
umi-plugin-react
'
,
{
dva
:
true
,
antd
:
true
,
locale
:
{
default
:
'
zh-CN
'
,
// default zh-CN
baseNavigator
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
},
},
],
'
umi-plugin-dva
'
,
'
umi-plugin-locale
'
,
// TODO 决定是否使用约定路由,如果使用配置路由那么 umi-plugin-routes 可以去掉了
// [
// 'umi-plugin-routes',
...
...
@@ -29,12 +20,20 @@ export default {
// },
// ],
],
locale
:
{
enable
:
true
,
// default false
default
:
'
zh-CN
'
,
// default zh-CN
baseNavigator
:
true
,
// default true, when it is true, will use `navigator.language` overwrite default
antd
:
true
,
// use antd, default is true
},
// 路由配置
routes
:
pageRoutes
,
theme
:
{
'
card-actions-background
'
:
'
#f5f8fa
'
,
},
// entry: 'src/index.js', // TODO remove
extraBabelPlugins
:
[[
'
import
'
,
{
libraryName
:
'
antd
'
,
libraryDirectory
:
'
es
'
,
style
:
true
}]],
env
:
{
development
:
{
extraBabelPlugins
:
[
'
dva-hmr
'
],
...
...
@@ -71,6 +70,7 @@ export default {
return
`antd-pro
${
arr
.
join
(
'
-
'
)}
-
${
localName
}
`
.
replace
(
/--/g
,
'
-
'
);
},
},
disableFastClick
:
true
,
manifest
:
{
name
:
'
ant-design-pro
'
,
background_color
:
'
#FFF
'
,
...
...
package.json
View file @
fc1ac964
...
...
@@ -44,7 +44,6 @@
"
react-fittext
"
:
"
^1.0.0
"
,
"
rollbar
"
:
"
^2.4.2
"
,
"
setprototypeof
"
:
"
^1.1.0
"
,
"
umi-plugin-react
"
:
"
^1.0.0-beta.1
"
,
"
url-polyfill
"
:
"
^1.0.13
"
},
"devDependencies"
:
{
...
...
@@ -55,6 +54,7 @@
"
antd-theme-webpack-plugin
"
:
"
^1.0.8
"
,
"
babel-eslint
"
:
"
^8.2.6
"
,
"
babel-plugin-dva-hmr
"
:
"
^0.4.1
"
,
"
babel-plugin-import
"
:
"
^1.8.0
"
,
"
babel-plugin-module-resolver
"
:
"
^3.1.1
"
,
"
babel-plugin-transform-decorators-legacy
"
:
"
^1.3.4
"
,
"
babel-runtime
"
:
"
^6.9.2
"
,
...
...
@@ -75,8 +75,8 @@
"
gh-pages
"
:
"
^1.2.0
"
,
"
husky
"
:
"
^0.14.3
"
,
"
lint-staged
"
:
"
^7.2.0
"
,
"
merge-umi-mock-data
"
:
"
^0.0.2
"
,
"
mockjs
"
:
"
^1.0.1-beta3
"
,
"
merge-umi-mock-data
"
:
"
^0.0.2
"
,
"
prettier
"
:
"
1.13.7
"
,
"
pro-download
"
:
"
^1.0.1
"
,
"
redbox-react
"
:
"
^1.5.0
"
,
...
...
@@ -84,7 +84,10 @@
"
stylelint
"
:
"
^9.2.1
"
,
"
stylelint-config-prettier
"
:
"
^3.0.4
"
,
"
stylelint-config-standard
"
:
"
^18.0.0
"
,
"
umi
"
:
"
^2.0.0-beta.1
"
"
umi
"
:
"
^1.3.15
"
,
"
umi-plugin-dva
"
:
"
^0.9.1
"
,
"
umi-plugin-routes
"
:
"
^0.1.5
"
,
"
umi-plugin-locale
"
:
"
^1.0.1
"
},
"optionalDependencies"
:
{
"puppeteer"
:
"^1.6.0"
...
...
src/pages/document.ejs
View file @
fc1ac964
...
...
@@ -6,10 +6,11 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Ant Design Pro
</title>
<link
rel=
"manifest"
href=
"/
asset-
manifest.json"
>
<link
rel=
"manifest"
href=
"/
static/
manifest.json"
>
<link
rel=
"icon"
href=
"/favicon.png"
type=
"image/x-icon"
>
<script
src=
"https://cdn.bootcss.com/rollbar.js/2.4.0/rollbar.min.js"
></script>
<script
src=
"https://gw.alipayobjects.com/os/antv/assets/data-set/0.8.7/data-set.min.js"
></script>
<script
src=
"/service-worker.js"
></script>
</head>
<body>
...
...
@@ -24,4 +25,5 @@
<script
type=
"text/javascript"
src=
"https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js"
></script>
</body>
</html>
</html>
\ No newline at end of file
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