Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
2786b410
Commit
2786b410
authored
Jun 13, 2020
by
Junling Bu
Browse files
feat[litemall-admin]: 更新vue-element-admin到4.3.0
parent
92cfea63
Changes
21
Show whitespace changes
Inline
Side-by-side
litemall-admin/vue.config.js
View file @
2786b410
...
...
@@ -29,7 +29,12 @@ module.exports = {
lintOnSave
:
process
.
env
.
NODE_ENV
===
'
development
'
,
productionSourceMap
:
false
,
devServer
:
{
port
:
port
port
:
port
,
open
:
true
,
overlay
:
{
warnings
:
false
,
errors
:
true
}
},
configureWebpack
:
{
// provide the app's title in webpack's name field, so that
...
...
@@ -42,8 +47,11 @@ module.exports = {
}
},
chainWebpack
(
config
)
{
config
.
plugins
.
delete
(
'
preload
'
)
// TODO: need test
config
.
plugins
.
delete
(
'
prefetch
'
)
// TODO: need test
// it can improve the speed of the first screen, it is recommended to turn on preload
// config.plugins.delete('preload')
// when there are many pages, it will cause too many meaningless requests
config
.
plugins
.
delete
(
'
prefetch
'
)
//
// set svg-sprite-loader
config
.
module
...
...
@@ -73,12 +81,6 @@ module.exports = {
})
.
end
()
config
// https://webpack.js.org/configuration/devtool/#development
.
when
(
process
.
env
.
NODE_ENV
===
'
development
'
,
config
=>
config
.
devtool
(
'
cheap-source-map
'
)
)
config
.
when
(
process
.
env
.
NODE_ENV
!==
'
development
'
,
config
=>
{
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
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