当前位置:网站首页>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`
},
}
边栏推荐
- 电商RPA机器人,助力品牌电商抢立流量高点
- [embedded system course design] a single key controls the LED light
- Selectively inhibiting learning bias for active sampling
- 在代码中使用SqlCommand对象
- leetcode96不同的二叉搜索树
- ADO.NET之sqlCommand对象
- The difference between timer and scheduledthreadpoolexecutor
- - Oui. Env. Fichier XXX, avec constante, mais non spécifié
- Which securities company is the best to open a stock account? Is there a security guarantee
- 多表操作-一对一,一对多与多对多
猜你喜欢
如何提升数据质量
Selectively inhibiting learning bias for active sampling
2021 robocom world robot developer competition - preliminary competition of undergraduate group
Concurrentskiplistmap -- principle of table skipping
BlocProvider为什么感觉和Provider很相似?
Redis RDB snapshot
多表操作-一对一,一对多与多对多
安全协议重点
2021 robocom world robot developer competition - preliminary competition of higher vocational group
Deep learning | three concepts: epoch, batch, iteration
随机推荐
Graduation season is both a farewell and a new beginning
Deep learning | three concepts: epoch, batch, iteration
2022-07-01: at the annual meeting of a company, everyone is going to play a game of giving bonuses. There are a total of N employees. Each employee has construction points and trouble points. They nee
ConcurrentSkipListMap——跳表原理
Redis master-slave synchronization
SecurityUtils. getSubject(). How to solve the problem that getprincipal() is null
Why does blocprovider feel similar to provider?
Linux centos7 installation Oracle11g super perfect novice tutorial
Difficult to get up syndrome (bit by bit greed)
Kubernetes resource object introduction and common commands (III)
SQL optimization
const // It is a const object...class nullptr_t
Which securities company is the best to open a stock account? Is there a security guarantee
Niuke - Practice 101 - reasoning clown
I would like to ask, which securities is better for securities account opening? Is it safe to open a mobile account?
mysql:insert ignore、insert和replace区别
【模板】自适应辛普森积分
Multi table operation - one to one, one to many and many to many
Record the accidental success and failure of uploading large files
Three methods of finding inverse numbers