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
a1fba362
Commit
a1fba362
authored
Jun 02, 2019
by
huangzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove MergeLessPlugin
parent
600332e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
config/plugin.config.ts
config/plugin.config.ts
+9
-9
No files found.
config/plugin.config.ts
View file @
a1fba362
// Change theme plugin
// Change theme plugin
import
MergeLessPlugin
from
'
antd-pro-merge-less
'
;
//
import MergeLessPlugin from 'antd-pro-merge-less';
// import AntDesignThemePlugin from 'antd-theme-webpack-plugin';
// import AntDesignThemePlugin from 'antd-theme-webpack-plugin';
import
ThemeColorReplacer
from
'
webpack-theme-color-replacer
'
;
import
ThemeColorReplacer
from
'
webpack-theme-color-replacer
'
;
import
path
from
'
path
'
;
import
path
from
'
path
'
;
...
@@ -32,15 +32,15 @@ export default (config: any) => {
...
@@ -32,15 +32,15 @@ export default (config: any) => {
process
.
env
.
NODE_ENV
!==
'
production
'
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
)
{
// 将所有 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/');
config
.
plugin
(
'
merge-less
'
).
use
(
MergeLessPlugin
,
[
//
config.plugin('merge-less').use(MergeLessPlugin, [
{
//
{
stylesDir
,
//
stylesDir,
outFile
,
//
outFile,
},
//
},
]);
//
]);
config
.
plugin
(
'
webpack-theme-color-replacer
'
).
use
(
ThemeColorReplacer
,
[
config
.
plugin
(
'
webpack-theme-color-replacer
'
).
use
(
ThemeColorReplacer
,
[
{
{
fileName
:
'
css/theme-colors.css
'
,
fileName
:
'
css/theme-colors.css
'
,
...
...
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