当前位置:网站首页>vue 强制清理浏览器缓存
vue 强制清理浏览器缓存
2022-07-01 23:54:00 【sunyin.liu】
上代码不bb
在vue.config.js
const version = new Date().getTime();
....
configureWebpack: {
/* config:{
}, */
output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename: `js/[name].[chunkhash].${version}.js`,
chunkFilename: `js/[id].[chunkhash].${version}.js`
},
}
Cannot use [chunkhash] or [contenthash] for chunk in
完善
const mode = process.env.NODE_ENV
const isDev = mode === 'development'
configureWebpack: {
/* config:{
}, */
output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
filename: isDev ? `[name].js` : `js/[name].[chunkhash].${version}.js`,
chunkFilename: isDev ? `[name].js` : `js/[id].[chunkhash].${version}.js`
},
}
边栏推荐
- PyCharm调用matplotlib绘图时图像弹出问题怎么解决
- Similarities and differences between the defined identity execution function authid determiner and PostgreSQL in Oracle
- Shell process control
- Why does blocprovider feel similar to provider?
- [QT] qtcreator uninstall and installation (abnormal state)
- 在代码中使用SqlCommand对象
- 边缘计算概述
- 关联性——组内相关系数
- [cmake] cmake configuration in QT Creator
- Applet form verification encapsulation
猜你喜欢
使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object
Learn online case practice
Difficult to get up syndrome (bit by bit greed)
Chapter 6 data flow modeling
algolia 搜索需求,做的快自闭了...
起床困难综合症(按位贪心)
写给当前及未来博士研究生一些建议整理分享
kubernetes资源对象介绍及常用命令(三)
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
How to solve the image pop-up problem when pycharm calls Matplotlib to draw
随机推荐
Relatively easy to understand PID understanding
回顾数据脱敏系统
MySQL: the difference between insert ignore, insert and replace
攻防演练复盘
Iota in golang
在长城证券上买基金安全吗?
const // It is a const object... class nullptr_ t
Niuke - Practice 101 - reasoning clown
Learn online case practice
Material design component - use bottomsheet to show extended content (I)
Windows 7 安装MYSQL 错误:1067
多表操作-一对一,一对多与多对多
Digital transformation has a long way to go, so how to take the key first step
Li Kou today's question -241 Design priorities for operational expressions
How to display real-time 2D map after rviz is opened
Kubernetes resource object introduction and common commands (III)
Redis AOF log
cookie、session、tooken
小程序表单校验封装
How excel opens CSV files with more than one million lines