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
P
pro-blocks
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
pro-blocks
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/
const
os
=
require
(
'
os
'
)
;
const
pageRoutes
=
require
(
'
./router.config
'
)
;
const
webpackplugin
=
require
(
'
./plugin.config
'
)
;
const
defaultSettings
=
require
(
'
../src/defaultSettings
'
)
;
import
os
from
'
os
'
;
import
pageRoutes
from
'
./router.config
'
;
import
webpackplugin
from
'
./plugin.config
'
;
import
defaultSettings
from
'
../src/defaultSettings
'
;
export
default
{
// add for transfer to umi
...
...
config/plugin.config.js
View file @
ef3653a8
// Change theme plugin
const
MergeLessPlugin
=
require
(
'
antd-pro-merge-less
'
)
;
const
AntDesignThemePlugin
=
require
(
'
antd-pro-theme-webpack-plugin
'
)
;
const
path
=
require
(
'
path
'
)
;
import
MergeLessPlugin
from
'
antd-pro-merge-less
'
;
import
AntDesignThemePlugin
from
'
antd-pro-theme-webpack-plugin
'
;
import
path
from
'
path
'
;
const
plugin
=
config
=>
{
export
default
config
=>
{
// 将所有 less 合并为一个供 themePlugin使用
const
outFile
=
path
.
join
(
__dirname
,
'
../.temp/ant-design-pro.less
'
);
const
stylesDir
=
path
.
join
(
__dirname
,
'
../src/
'
);
...
...
@@ -26,5 +26,3 @@ const plugin = config => {
},
]);
};
module
.
exports
=
plugin
;
config/router.config.js
View file @
ef3653a8
module
.
exports
=
[
export
default
[
// 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