Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
mes
mes-ui
Commits
c86f8b69
Commit
c86f8b69
authored
Feb 22, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原来正常版本
parent
93dbbaf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
30 deletions
+26
-30
vue.config.js
vue.config.js
+26
-30
No files found.
vue.config.js
View file @
c86f8b69
...
@@ -35,10 +35,6 @@ module.exports = {
...
@@ -35,10 +35,6 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
<<<<<<<
HEAD
=======
>>>>>>>
19039080
e03811de085ec1721838eb2164f9fce4
target
:
`http://localhost:8080`
,
target
:
`http://localhost:8080`
,
// target: `http://192.168.4.122:8080`,
// target: `http://192.168.4.122:8080`,
changeOrigin
:
true
,
changeOrigin
:
true
,
...
@@ -109,39 +105,39 @@ module.exports = {
...
@@ -109,39 +105,39 @@ module.exports = {
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
.
plugin
(
'ScriptExtHtmlWebpackPlugin'
)
.
after
(
'html'
)
.
after
(
'html'
)
.
use
(
'script-ext-html-webpack-plugin'
,
[{
.
use
(
'script-ext-html-webpack-plugin'
,
[{
// `runtime` must same as runtimeChunk name. default is `runtime`
// `runtime` must same as runtimeChunk name. default is `runtime`
inline
:
/runtime
\.
.*
\.
js$/
inline
:
/runtime
\.
.*
\.
js$/
}])
}])
.
end
()
.
end
()
config
config
.
optimization
.
splitChunks
({
.
optimization
.
splitChunks
({
chunks
:
'all'
,
chunks
:
'all'
,
cacheGroups
:
{
cacheGroups
:
{
libs
:
{
libs
:
{
name
:
'chunk-libs'
,
name
:
'chunk-libs'
,
test
:
/
[\\/]
node_modules
[\\/]
/
,
test
:
/
[\\/]
node_modules
[\\/]
/
,
priority
:
10
,
priority
:
10
,
chunks
:
'initial'
// only package third parties that are initially dependent
chunks
:
'initial'
// only package third parties that are initially dependent
},
},
elementUI
:
{
elementUI
:
{
name
:
'chunk-elementUI'
,
// split elementUI into a single package
name
:
'chunk-elementUI'
,
// split elementUI into a single package
priority
:
20
,
// the weight needs to be larger than libs and app or it will be packaged into libs or app
priority
:
20
,
// the weight needs to be larger than libs and app or it will be packaged into libs or app
test
:
/
[\\/]
node_modules
[\\/]
_
?
element-ui
(
.*
)
/
// in order to adapt to cnpm
test
:
/
[\\/]
node_modules
[\\/]
_
?
element-ui
(
.*
)
/
// in order to adapt to cnpm
},
},
commons
:
{
commons
:
{
name
:
'chunk-commons'
,
name
:
'chunk-commons'
,
test
:
resolve
(
'src/components'
),
// can customize your rules
test
:
resolve
(
'src/components'
),
// can customize your rules
minChunks
:
3
,
// minimum common number
minChunks
:
3
,
// minimum common number
priority
:
5
,
priority
:
5
,
reuseExistingChunk
:
true
reuseExistingChunk
:
true
}
}
}
})
}
})
config
.
optimization
.
runtimeChunk
(
'single'
),
config
.
optimization
.
runtimeChunk
(
'single'
),
{
{
from
:
path
.
resolve
(
__dirname
,
'./public/robots.txt'
),
//防爬虫文件
from
:
path
.
resolve
(
__dirname
,
'./public/robots.txt'
),
//防爬虫文件
to
:
'./'
//到根目录下
to
:
'./'
//到根目录下
}
}
}
}
)
)
}
}
...
...
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