Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
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
quantum-blocks-h5
Commits
f9e8c662
Commit
f9e8c662
authored
Feb 26, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 去掉打包分析
parent
b3bc07fd
Pipeline
#819
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
package.json
package.json
+1
-1
webpack.config.js
webpack.config.js
+11
-3
No files found.
package.json
View file @
f9e8c662
...
...
@@ -8,7 +8,7 @@
"backend"
:
"nohup egg-scripts start --port 7001 --workers 4"
,
"dev"
:
"egg-bin dev -r egg-ts-helper/register"
,
"debug"
:
"egg-bin debug -r egg-ts-helper/register"
,
"build"
:
"easy build --devtool
--size
"
,
"build"
:
"easy build --devtool"
,
"tsc"
:
"ets && tsc -p tsconfig.json"
,
"clean"
:
"ets clean"
,
"kill"
:
"easy kill"
,
...
...
webpack.config.js
View file @
f9e8c662
...
...
@@ -82,15 +82,22 @@ module.exports = {
cacheGroups
:
{
default
:
false
,
vueRouter
:
{
name
:
'
vue-router
'
,
priority
:
23
,
chunks
:
'
all
'
,
test
:
/
[\\/]
node_modules
[\\/]
vue-router
[\\/]
/
,
enforce
:
true
},
axios
:
{
name
:
'
axios
'
,
// 分离组件库
name
:
'
axios
'
,
priority
:
23
,
chunks
:
'
all
'
,
test
:
/
[\\/]
node_modules
[\\/]
axios
[\\/]
/
,
enforce
:
true
},
vuex
:
{
name
:
'
vuex
'
,
// 分离组件库
name
:
'
vuex
'
,
priority
:
23
,
chunks
:
'
all
'
,
test
:
/
[\\/]
node_modules
[\\/]
vuex
[\\/]
/
,
...
...
@@ -110,7 +117,7 @@ module.exports = {
enforce
:
true
},
elementResizeDetector
:
{
name
:
'
element
ResizeD
etector
'
,
// 分离组件库
name
:
'
element
-resize-d
etector
'
,
// 分离组件库
priority
:
20
,
chunks
:
'
all
'
,
test
:
/
[\\/]
node_modules
[\\/]
element-resize-detector
[\\/]
/
,
...
...
@@ -174,6 +181,7 @@ module.exports = {
}
}
},
// mode: 'development',
devtool
:
'
source-map
'
,
customize
(
webpackConfig
){
// 此外 webpackConfig 为原生生成的 webpack config,可以进行自定义处理
...
...
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