Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
414052e4
Commit
414052e4
authored
Apr 25, 2022
by
曾婧
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/CivWeb
parents
57de67af
5d6f69e8
Pipeline
#48633
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
9 deletions
+37
-9
webpack.prod.babel.js
internals/webpack/webpack.prod.babel.js
+36
-8
app.js
src/app.js
+1
-1
No files found.
internals/webpack/webpack.prod.babel.js
View file @
414052e4
...
...
@@ -50,13 +50,16 @@ module.exports = require('./webpack.base.babel')({
concatenateModules
:
true
,
runtimeChunk
:
'single'
,
splitChunks
:
{
maxSize
:
100
*
1024
,
// 控制包的最大字节数
minSize
:
10
*
1024
,
// 控制包的最小字节数
minSize
:
20000
,
minRemainingSize
:
0
,
minChunks
:
1
,
maxAsyncRequests
:
30
,
// webpack4,5区别较大
maxInitialRequests
:
30
,
// webpack4,5区别较大
enforceSizeThreshold
:
50000
,
cacheGroups
:
{
vendor
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
10
,
maxInitialRequests
:
5
,
test
:
/
[\\/]
node_modules
[\\/]
/
,
name
(
module
)
{
const
packageName
=
module
.
context
.
match
(
...
...
@@ -72,12 +75,37 @@ module.exports = require('./webpack.base.babel')({
test
:
/
[\\/]
src
[\\/]
components
[\\/]
/
,
name
:
'biz-component'
,
},
react
:
{
arcgis_views
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
10
,
test
:
/
[\\/]
node_modules
[\\/]
react-dom
[\\/]
/
,
name
:
'react-dom'
,
maxInitialRequests
:
5
,
priority
:
20
,
test
:
/
[\\/]
node_modules
[\\/]
@arcgis
[\\/]
core
[\\/]
views
[\\/]
/
,
name
:
'arcgis_views'
,
},
arcgis_views_3d
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
5
,
priority
:
22
,
test
:
/
[\\/]
node_modules
[\\/]
@arcgis
[\\/]
core
[\\/]
views
[\\/]
3d
[\\/]
/
,
name
:
'arcgis_views_3d'
,
},
arcgis_layers
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
5
,
priority
:
10
,
test
:
/
[\\/]
node_modules
[\\/]
@arcgis
[\\/]
core
[\\/]
layers
[\\/]
/
,
name
:
'arcgis_layers'
,
},
arcgis_chunks
:
{
chunks
:
'all'
,
minSize
:
0
,
maxInitialRequests
:
5
,
priority
:
30
,
test
:
/
[\\/]
node_modules
[\\/]
@arcgis
[\\/]
core
[\\/]
chunks
[\\/]
/
,
name
:
'arcgis_chunks'
,
}
},
},
...
...
src/app.js
View file @
414052e4
...
...
@@ -3,7 +3,7 @@ import './public-path';
import
'!file-loader?name=[name].[ext]!./images/favicon.ico'
;
import
'./global.less'
;
import
'animate.css/animate.css'
;
import
'antd/dist/antd.less'
;
//
import 'antd/dist/antd.less';
import
'file-loader?name=.htaccess!./.htaccess'
;
// eslint-disable-line import/extensions
import
'@wisdom-utils/utils/lib/helpers/format'
;
import
'sanitize.css/sanitize.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