当前位置:网站首页>Vue project NPM run build when packaging the project, time stamp the version number of CSS and JS files to prevent the browser from caching
Vue project NPM run build when packaging the project, time stamp the version number of CSS and JS files to prevent the browser from caching
2022-04-22 04:41:00 【chinahcp2008】
stay vue.config.js Do the following configuration in the file
const Timestamp = new Date().getTime()
module.exports = {
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
config.output.filename = `js/[name].${
Timestamp}.js`
config.output.chunkFilename = `js/[name].${
Timestamp}.js`
}
},
css: {
extract: {
filename: `css/[name].${
Timestamp}.css`,
chunkFilename: `css/[name].${
Timestamp}.css`
}
}
}


版权声明
本文为[chinahcp2008]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220440296724.html
边栏推荐
- 如何在 Acrobat Pro DC 与其它文件合并创建单个 PDF 文件?
- SCI论文写作--IEEE期刊的Word模板(LaTeX也有)
- STL的unique函数返回值
- LeetCode 剑指 Offer 15. 二进制中1的个数
- Spark installation and use of educoder
- pipeline communication
- 软件测试成行业“薪”贵?
- 排序一
- Torch file saving and loading -- [torch learning notes]
- 2022 a special equipment related management (elevator) retraining question bank and answers
猜你喜欢

如何在 Acrobat Pro DC 与其它文件合并创建单个 PDF 文件?

Bi set - SSM campus second-hand book sales system + thesis

Raspberry pie 4B compile paddlelite (detailed steps 2022)

2022T电梯修理考试试题及在线模拟考试

2022年山东省安全员C证考试题及在线模拟考试
![[twelfth database operation - stored procedure]](/img/8f/5ca161db5ffb465dddb9d423418fad.png)
[twelfth database operation - stored procedure]

SCI paper writing -- word template of IEEE Journal (also available in latex)

队列第二篇

LeetCode 剑指 Offer 43. 1~n 整数中 1 出现的次数***

创意几何点线面三角形孟菲斯海报banneer广告设计ai矢量背景素材
随机推荐
Random number of unity
Statistics of authoritative institutions: the best data center network company in 2021, China Huawei and H3C, were listed
2022g2 boiler operator certificate examination question bank and online simulation examination
Torch file saving and loading -- [torch learning notes]
手机软件(App)测试主要有哪些方面?
Bi set - SSM campus second-hand book sales system + thesis
安装opencv时遇到的报错
QT used in vs 2019
Kotlin Foundation (XIII) nested classes, inner classes and anonymous inner classes
10人小团队创业,如今收入过亿,不融资的简道云是怎么做到的?
Sequence traversal of binary tree
LeetCode 剑指 Offer 43. 1~n 整数中 1 出现的次数***
Shell variables $, $@, $0, $1, $2, ${},%% use explanation and easy-to-use shell formatting tools
【S32K3_STM&PIT_MCAL】
Keras deep learning practice (2) -- using keras to construct neural network
SCI论文写作--IEEE期刊的Word模板(LaTeX也有)
Thesis reading (47): dtfd-mil: double tier feature interpretation multiple instance learning for histopathology
7_ Data analysis - Evaluation
DNS domain name system - directory service of the Internet
Paper reading (49): big data security and privacy protection (Kopp)