Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
45ce17d2
authored
2023-10-10 16:57:54 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:webpack打包缓存
1 parent
205828b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
vue.config.js
vue.config.js
View file @
45ce17d
'use strict'
const
path
=
require
(
'path'
)
const
Timestamp
=
new
Date
().
getTime
();
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
...
...
@@ -63,6 +64,10 @@ module.exports = {
'@'
:
resolve
(
'src'
)
}
},
output
:
{
// 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename
:
`static/js/[name].
${
Timestamp
}
.js`
,
chunkFilename
:
`static/js/[name].
${
Timestamp
}
.js`
},
devtool
:
process
.
env
.
NODE_ENV
===
'development'
?
'#eval-source-map'
:
false
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
...
...
Please
register
or
sign in
to post a comment