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
28310e16
Commit
28310e16
authored
Jul 03, 2018
by
ζι
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove webpackrc to config/config.js
parent
57d4e8f9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
50 deletions
+59
-50
.gitignore
.gitignore
+6
-1
.prettierignore
.prettierignore
+2
-0
.webpackrc.js
.webpackrc.js
+0
-46
config/config.js
config/config.js
+51
-3
No files found.
.gitignore
View file @
28310e16
...
@@ -29,3 +29,8 @@ jsconfig.json
...
@@ -29,3 +29,8 @@ jsconfig.json
functions/mock
functions/mock
.temp/**
.temp/**
# umi
.umi
.umi-production
.prettierignore
View file @
28310e16
...
@@ -3,3 +3,5 @@
...
@@ -3,3 +3,5 @@
**/*.ejs
**/*.ejs
**/*.html
**/*.html
package.json
package.json
.umi
.umi-production
.webpackrc.js
deleted
100755 β 0
View file @
57d4e8f9
const
path
=
require
(
'
path
'
);
export
default
{
entry
:
'
src/index.js
'
,
extraBabelPlugins
:
[[
'
import
'
,
{
libraryName
:
'
antd
'
,
libraryDirectory
:
'
es
'
,
style
:
true
}]],
env
:
{
development
:
{
extraBabelPlugins
:
[
'
dva-hmr
'
],
},
},
externals
:
{
'
@antv/data-set
'
:
'
DataSet
'
,
bizcharts
:
'
BizCharts
'
,
rollbar
:
'
rollbar
'
,
},
alias
:
{
components
:
path
.
resolve
(
__dirname
,
'
src/components/
'
),
},
ignoreMomentLocale
:
true
,
theme
:
'
./src/theme.js
'
,
html
:
{
template
:
'
./src/index.ejs
'
,
},
publicPath
:
'
/
'
,
hash
:
true
,
lessLoaderOptions
:
{
javascriptEnabled
:
true
,
},
cssLoaderOptions
:
{
modules
:
true
,
getLocalIdent
:
(
context
,
localIdentName
,
localName
)
=>
{
if
(
context
.
resourcePath
.
includes
(
'
node_modules
'
)
||
context
.
resourcePath
.
includes
(
'
ant.design.pro.less
'
)
)
{
return
localName
;
}
const
antdProPath
=
context
.
resourcePath
.
match
(
/src
(
.*
)
/
)[
1
].
replace
(
'
.less
'
,
''
);
const
arr
=
antdProPath
.
split
(
'
/
'
)
.
map
(
a
=>
a
.
replace
(
/
([
A-Z
])
/g
,
'
-$1
'
))
.
map
(
a
=>
a
.
toLowerCase
());
return
`antd-pro
${
arr
.
join
(
'
-
'
)}
-
${
localName
}
`
.
replace
(
/--/g
,
'
-
'
);
},
},
};
config/config.js
View file @
28310e16
/* eslint-disable react/destructuring-assignment */
// https://umijs.org/config/
// https://umijs.org/config/
const
path
=
require
(
'
path
'
);
export
default
{
export
default
{
plugins
:
[
plugins
:
[
'
umi-plugin-dva
'
],
'
umi-plugin-dva
'
,
],
// TODO remove
// entry: 'src/index.js',
extraBabelPlugins
:
[[
'
import
'
,
{
libraryName
:
'
antd
'
,
libraryDirectory
:
'
es
'
,
style
:
true
}]],
env
:
{
development
:
{
extraBabelPlugins
:
[
'
dva-hmr
'
],
},
},
externals
:
{
'
@antv/data-set
'
:
'
DataSet
'
,
bizcharts
:
'
BizCharts
'
,
rollbar
:
'
rollbar
'
,
},
alias
:
{
components
:
path
.
resolve
(
__dirname
,
'
src/components/
'
),
},
ignoreMomentLocale
:
true
,
theme
:
'
./src/theme.js
'
,
html
:
{
template
:
'
./src/index.ejs
'
,
},
publicPath
:
'
/
'
,
// TODO check hash config
// hash: true,
lessLoaderOptions
:
{
javascriptEnabled
:
true
,
},
cssLoaderOptions
:
{
modules
:
true
,
getLocalIdent
:
(
context
,
localIdentName
,
localName
)
=>
{
if
(
context
.
resourcePath
.
includes
(
'
node_modules
'
)
||
context
.
resourcePath
.
includes
(
'
ant.design.pro.less
'
)
)
{
return
localName
;
}
const
antdProPath
=
context
.
resourcePath
.
match
(
/src
(
.*
)
/
)[
1
].
replace
(
'
.less
'
,
''
);
const
arr
=
antdProPath
.
split
(
'
/
'
)
.
map
(
a
=>
a
.
replace
(
/
([
A-Z
])
/g
,
'
-$1
'
))
.
map
(
a
=>
a
.
toLowerCase
());
return
`antd-pro
${
arr
.
join
(
'
-
'
)}
-
${
localName
}
`
.
replace
(
/--/g
,
'
-
'
);
},
},
};
};
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