Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
5ea1442e
Commit
5ea1442e
authored
Jul 06, 2023
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 删除没用代码
parent
217b1c77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
plugin.config.js
config/plugin.config.js
+0
-20
No files found.
config/plugin.config.js
View file @
5ea1442e
...
...
@@ -4,30 +4,10 @@
/* eslint-disable import/no-extraneous-dependencies */
import
ThemeColorReplacer
from
'
webpack-theme-color-replacer
'
;
import
generate
from
'
@ant-design/colors/lib/generate
'
;
import
path
from
'
path
'
;
const
HappyPack
=
require
(
'
happypack
'
);
const
happyThreadPool
=
HappyPack
.
ThreadPool
({
size
:
require
(
'
os
'
).
cpus
().
length
});
const
SentryPlugin
=
require
(
'
@qg/sentry-webpack-plugin
'
);
const
SentryConfig
=
require
(
'
../.sentryclirc
'
);
function
getModulePackageName
(
module
)
{
if
(
!
module
.
context
)
return
null
;
const
nodeModulesPath
=
path
.
join
(
__dirname
,
'
../node_modules/
'
);
if
(
module
.
context
.
substring
(
0
,
nodeModulesPath
.
length
)
!==
nodeModulesPath
)
{
return
null
;
}
const
moduleRelativePath
=
module
.
context
.
substring
(
nodeModulesPath
.
length
);
const
[
moduleDirName
]
=
moduleRelativePath
.
split
(
path
.
sep
);
let
packageName
=
moduleDirName
;
// handle tree shaking
if
(
packageName
&&
packageName
.
match
(
'
^_
'
))
{
// eslint-disable-next-line prefer-destructuring
packageName
=
packageName
.
match
(
/^_
(
@
?[^
@
]
+
)
/
)[
1
];
}
return
packageName
;
}
export
default
config
=>
{
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
...
...
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