当前位置:网站首页>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`
},
}边栏推荐
- 【QT】对于Qt MSVC 2017无法编译的问题解决
- PyTorch学习记录
- [QT] solve the problem that QT MSVC 2017 cannot compile
- JPA handwritten SQL, received with user-defined entity classes
- 攻防演练复盘
- Similarities and differences between the defined identity execution function authid determiner and PostgreSQL in Oracle
- Using SqlCommand objects in code
- How to solve the image pop-up problem when pycharm calls Matplotlib to draw
- excel如何打开100万行以上的csv文件
- Kubernetes resource object introduction and common commands (III)
猜你喜欢
随机推荐
LeetCode中等题题分享(5)
[es practice] safe operation mode on ES
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
【QT】对于Qt MSVC 2017无法编译的问题解决
[QT] solve the problem that QT MSVC 2017 cannot compile
Jielizhi, production line assembly link [chapter]
门级建模—课后习题
Redis master-slave synchronization
PostgreSQL source code (58) tuple splicing heap_ form_ Tuple analysis
S32Kxxx bootloader之UDS bootloader
cookie、session、tooken
股票开户哪个证券公司最好,有安全保障吗
Asp .NetCore 微信订阅号自动回复之文本篇
Algolia's search needs are almost closed
Multi table operation - one to one, one to many and many to many
Pytorch learning record
algolia 搜索需求,做的快自闭了...
安全协议重点
.env.xxx 文件,加了常量,却undefined
二叉搜索树的创建,查找,添加,删除操作









