Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
linweijiong
jinfa-platform
Commits
491cd73e
Commit
491cd73e
authored
Nov 26, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
d7684fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
config.ts
config/config.ts
+23
-23
No files found.
config/config.ts
View file @
491cd73e
...
...
@@ -49,29 +49,29 @@ const config: any = {
defaultSizes
:
'parsed'
,
// stat // gzip
},
inlineLimit
:
10000
,
chunks
:
[
'vendors'
,
'umi'
],
chainWebpack
:
function
(
config
,
{
webpack
})
{
config
.
merge
({
optimization
:
{
minimize
:
true
,
splitChunks
:
{
chunks
:
'all'
,
minSize
:
30000
,
minChunks
:
3
,
automaticNameDelimiter
:
'.'
,
cacheGroups
:
{
vendor
:
{
name
:
'vendors'
,
test
({
resource
})
{
return
/
[\\/]
node_modules
[\\/]
/
.
test
(
resource
);
},
priority
:
10
,
},
},
},
}
});
},
//
chunks: ['vendors', 'umi'],
//
chainWebpack: function (config, { webpack }) {
//
config.merge({
//
optimization: {
//
minimize: true,
//
splitChunks: {
//
chunks: 'all',
//
minSize: 30000,
//
minChunks: 3,
//
automaticNameDelimiter: '.',
//
cacheGroups: {
//
vendor: {
//
name: 'vendors',
//
test({ resource }) {
//
return /[\\/]node_modules[\\/]/.test(resource);
//
},
//
priority: 10,
//
},
//
},
//
},
//
}
//
});
//
},
cssLoader
:
{
localsConvention
:
'camelCase'
,
// 将style中的class由 .foo-body 转化为fooBody调用
},
...
...
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