Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web-framework-temp
/
vue-cli3-vt-template-master
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e81d3061
authored
2021-02-20 15:39:26 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
防止重名图片被覆盖
1 parent
743d837e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
vue.config.js
vue.config.js
View file @
e81d306
...
...
@@ -40,6 +40,20 @@ module.exports = {
.
end
()
})
const
imagesRule
=
config
.
module
.
rule
(
'images'
)
imagesRule
.
uses
.
clear
()
imagesRule
.
use
(
'file-loader'
)
.
loader
(
'url-loader'
)
.
options
({
limit
:
10000
,
fallback
:
{
loader
:
'file-loader'
,
options
:
{
name
:
'img/[name].[hash:8].[ext]'
}
}
})
},
configureWebpack
:
{
// webpack 配置
// 修改打包后js文件名
...
...
Please
register
or
sign in
to post a comment