当前位置:网站首页>Vue force cleaning browser cache
Vue force cleaning browser cache
2022-07-02 00:01:00 【sunyin. liu】
Upper code no bb
stay vue.config.js
const version = new Date().getTime();
....
configureWebpack: {
/* config:{
}, */
output: { // Output reconstruction Package compiled File name 【 Module name . Version number . Time stamp 】
filename: `js/[name].[chunkhash].${version}.js`,
chunkFilename: `js/[id].[chunkhash].${version}.js`
},
}
Cannot use [chunkhash] or [contenthash] for chunk in
perfect
const mode = process.env.NODE_ENV
const isDev = mode === 'development'
configureWebpack: {
/* config:{
}, */
output: { // Output reconstruction Package compiled File name 【 Module name . Version number . Time stamp 】
filename: isDev ? `[name].js` : `js/[name].[chunkhash].${version}.js`,
chunkFilename: isDev ? `[name].js` : `js/[id].[chunkhash].${version}.js`
},
}
边栏推荐
- Chapter 6 data flow modeling
- 13 MySQL constraint
- Shell process control
- PyTorch学习记录
- Is it safe to choose mobile phone for stock trading account opening in Beijing?
- Soft exam information system project manager_ Compiled abbreviations of the top ten management processes to help memory recitation - -- software test advanced information system project manager 054
- 使用 pair 做 unordered_map 的键值
- Windows 7 install MySQL error: 1067
- Review data desensitization system
- .env.xxx 文件,加了常量,卻undefined
猜你喜欢
RPA教程01:EXCEL自动化从入门到实操
Deep learning | three concepts: epoch, batch, iteration
BlocProvider为什么感觉和Provider很相似?
下载在线视频 m3u8使用教程
Concurrentskiplistmap -- principle of table skipping
LDR6035智能蓝牙音响可对手机设备持续充放电方案
时间复杂度与空间复杂度
Pytorch learning record
Overview of edge calculation
Relatively easy to understand PID understanding
随机推荐
华为HMS Core携手超图为三维GIS注入新动能
cookie、session、tooken
JPA handwritten SQL, received with user-defined entity classes
vue 强制清理浏览器缓存
Redis master-slave synchronization
Regular expression collection
下载在线视频 m3u8使用教程
记录一下大文件上传偶然成功偶然失败问题
股票开户哪个证券公司最好,有安全保障吗
二叉搜索树的创建,查找,添加,删除操作
LeetCode中等题题分享(5)
Use the htaccess file to prohibit the script execution permission in the directory
北京炒股开户选择手机办理安全吗?
【QT】对于Qt MSVC 2017无法编译的问题解决
Concurrentskiplistmap -- principle of table skipping
Review data desensitization system
Jielizhi, production line assembly link [chapter]
[untitled]
Resumption of attack and defense drill
openwrt 开启KV漫游