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
ef3653a8
Commit
ef3653a8
authored
Aug 31, 2018
by
愚道
Committed by
陈帅
Sep 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update config file with es6
parent
de265e6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
11 deletions
+9
-11
config/config.js
config/config.js
+4
-4
config/plugin.config.js
config/plugin.config.js
+4
-6
config/router.config.js
config/router.config.js
+1
-1
No files found.
config/config.js
View file @
ef3653a8
// https://umijs.org/config/
// https://umijs.org/config/
const
os
=
require
(
'
os
'
)
;
import
os
from
'
os
'
;
const
pageRoutes
=
require
(
'
./router.config
'
)
;
import
pageRoutes
from
'
./router.config
'
;
const
webpackplugin
=
require
(
'
./plugin.config
'
)
;
import
webpackplugin
from
'
./plugin.config
'
;
const
defaultSettings
=
require
(
'
../src/defaultSettings
'
)
;
import
defaultSettings
from
'
../src/defaultSettings
'
;
export
default
{
export
default
{
// add for transfer to umi
// add for transfer to umi
...
...
config/plugin.config.js
View file @
ef3653a8
// Change theme plugin
// Change theme plugin
const
MergeLessPlugin
=
require
(
'
antd-pro-merge-less
'
)
;
import
MergeLessPlugin
from
'
antd-pro-merge-less
'
;
const
AntDesignThemePlugin
=
require
(
'
antd-pro-theme-webpack-plugin
'
)
;
import
AntDesignThemePlugin
from
'
antd-pro-theme-webpack-plugin
'
;
const
path
=
require
(
'
path
'
)
;
import
path
from
'
path
'
;
const
plugin
=
config
=>
{
export
default
config
=>
{
// 将所有 less 合并为一个供 themePlugin使用
// 将所有 less 合并为一个供 themePlugin使用
const
outFile
=
path
.
join
(
__dirname
,
'
../.temp/ant-design-pro.less
'
);
const
outFile
=
path
.
join
(
__dirname
,
'
../.temp/ant-design-pro.less
'
);
const
stylesDir
=
path
.
join
(
__dirname
,
'
../src/
'
);
const
stylesDir
=
path
.
join
(
__dirname
,
'
../src/
'
);
...
@@ -26,5 +26,3 @@ const plugin = config => {
...
@@ -26,5 +26,3 @@ const plugin = config => {
},
},
]);
]);
};
};
module
.
exports
=
plugin
;
config/router.config.js
View file @
ef3653a8
module
.
exports
=
[
export
default
[
// user
// user
{
{
path
:
'
/user
'
,
path
:
'
/user
'
,
...
...
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