当前位置:网站首页>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`
},
}边栏推荐
- VIM color the catalogue
- Regular expression collection
- Use pair to do unordered_ Key value of map
- MySQL Replication中并行复制怎么实现
- SecurityUtils. getSubject(). How to solve the problem that getprincipal() is null
- 哈工大《信息内容安全》课程知识要点和难点
- Shell custom function
- Is it safe to buy funds on Great Wall Securities?
- Notblank and notempty
- 记录一下大文件上传偶然成功偶然失败问题
猜你喜欢

Deep learning | three concepts: epoch, batch, iteration

【CMake】Qt creator 里面的 cmake 配置

Relatively easy to understand PID understanding

Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object

Correlation - intra group correlation coefficient

下载在线视频 m3u8使用教程

Key points of security agreement
![[QT] test whether QT can connect to the database](/img/63/32530c15995ef23bde8cadc3adfd11.png)
[QT] test whether QT can connect to the database

Openvino model performance evaluation tool DL workbench

Difficult to get up syndrome (bit by bit greed)
随机推荐
小程序表单校验封装
Windows 7 安装MYSQL 错误:1067
BlocProvider为什么感觉和Provider很相似?
2021 robocom world robot developer competition - semi finals of higher vocational group
[cmake] cmake configuration in QT Creator
E-commerce RPA robot helps brand e-commerce to achieve high traffic
Digital transformation has a long way to go, so how to take the key first step
【.Net Core】程序相关各种全局文件
华为HMS Core携手超图为三维GIS注入新动能
TS initial use, TS type
PostgreSQL source code (58) tuple splicing heap_ form_ Tuple analysis
cookie、session、tooken
Similarities and differences between the defined identity execution function authid determiner and PostgreSQL in Oracle
const // It is a const object...class nullptr_t
openwrt 开启KV漫游
写给当前及未来博士研究生一些建议整理分享
[QT] solve the problem that QT MSVC 2017 cannot compile
Niuke - Practice 101 - reasoning clown
Anomaly-Transformer (ICLR 2022 Spotlight)复现过程及问题
Notblank and notempty