当前位置:网站首页>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`
},
}边栏推荐
- cookie、session、tooken
- Selectively inhibiting learning bias for active sampling
- Algolia's search needs are almost closed
- 【C#】依赖注入及Autofac
- Is it safe to buy funds on Great Wall Securities?
- 下载在线视频 m3u8使用教程
- Redis AOF日志
- Concurrentskiplistmap -- principle of table skipping
- 【QT】测试Qt是否能连接上数据库
- ARP message header format and request flow
猜你喜欢
![[QT] solve the problem that QT MSVC 2017 cannot compile](/img/35/e458fd437a0bed4bace2d6d65c9ec8.png)
[QT] solve the problem that QT MSVC 2017 cannot compile

Redis RDB snapshot

【QT】测试Qt是否能连接上数据库

Learn online case practice

2021 robocom world robot developer competition - preliminary competition of higher vocational group

Redis AOF log

PyTorch学习记录

. env. XXX file, with constant, but undefined

【QT】对于Qt MSVC 2017无法编译的问题解决

Write some suggestions to current and future doctoral students to sort out and share
随机推荐
SecurityUtils.getSubject().getPrincipal()为null的问题怎么解决
ADO. Net SqlConnection object usage summary
关联性——组内相关系数
【QT】對於Qt MSVC 2017無法編譯的問題解决
[Qt] résoudre le problème que Qt msvc 2017 ne peut pas Compiler
Material design component - use bottomsheet to show extended content (I)
ADO.NET 之sqlConnection 对象使用摘要
JPA handwritten SQL, received with user-defined entity classes
多表操作-一对一,一对多与多对多
Create Ca and issue certificate through go language
[QT] solve the problem that QT MSVC 2017 cannot compile
Record the accidental success and failure of uploading large files
力扣今日题-241. 为运算表达式设计优先级
Overview of edge calculation
TS initial use, TS type
Is there a piece of code that makes you convinced by human wisdom
algolia 搜索需求,做的快自闭了...
【QT】QtCreator卸载与安装(非正常状态)
vs2015 AdminDeployment.xml
cookie、session、tooken