当前位置:网站首页>Vue project deployment, cleaning cache
Vue project deployment, cleaning cache
2022-07-19 01:28:00 【venture to ask】
Configure root index.html
<meta http-equiv="pragram" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
To configure vue.config.js
const Version = new Date().getTime()
module.exports = {
css: {
loaderOptions: {
sass: {
data: `@import "@/components/themes/_handle.scss";`
}
},
// Whether to use css Detach plug-ins ExtractTextPlugin
extract: {
// After modification and packaging css file name
filename: `static/css/[name].${Version}.css`,
chunkFilename: `static/css/[name].${Version}.css`
}
},
configureWebpack: {
output: { // Output reconstruction Package compiled File name 【 Module name . Version number . Time stamp 】
// filename: utils.assetsPath('js/[name].[chunkhash].'+Version+'js'),
// chunkFilename: utils.assetsPath('js/[id].[chunkhash].'+Version+'js')
filename: `static/js/[name].${Version}.js`,
chunkFilename: `static/js/[name].${Version}.js`
}
},
chainWebpack(config) {
// img File name modification of
config.module
.rule('images')
.use('url-loader')
.tap(options => {
options.name = `static/img/[name].${Version}.[ext]`
options.fallback = {
loader: 'file-loader',
options: {
name: `static/img/[name].${Version}.[ext]`
}
}
return options
})
}
}
边栏推荐
- 记录一次easy_sql堆叠注入
- Day04 routing layer
- 缤纷彩色文字广告代码,文字广告代码美化版,给网站添加文字广告教程
- maker-论文资料查找培训-笔记
- Day05-Cookie,Session,Csrf
- Day12 Association serialization processing
- Oracle database enables archive log mode and archive log deletion and generation frequency
- Maker-鸿蒙应用开发培训笔记02
- The C Programming Language(2nd)--笔记--1.10
- Unit test (II) -- JUnit
猜你喜欢
![Understand PHP from [Fifth space 2021] easycleanup_ session](/img/fc/95332d488dd6096f3a3f6a9fb11644.png)
Understand PHP from [Fifth space 2021] easycleanup_ session

js替换字符串某个字符,js修改字符串中指定字符

Maker-鸿蒙应用开发培训笔记02

CobalStrike的部署(附带资源)

gtest与gmock的安装与使用

Day12-关联序列化处理

从catf1ag 两小时AK赛 PWN/ATTACK 查杀总结应急响应常用命令指南

object-fit:cover;在小程序中不起作用,小程序图片变形了如何处理

MoveIt2——2.MoveIt在RViz中的快速入门
![[SWPU 2019] network TTL encryption and some related knowledge](/img/c7/8a4b6e7808be9189e76563848b359d.png)
[SWPU 2019] network TTL encryption and some related knowledge
随机推荐
CTF CRYPTO RSA入门刷题
Three activation functions (relu, sigmoid, tanh) and multilayer perceptron
Day13-混入视图基类
Oracle automatic storage management (ASM)
XML外部实体注入总结(XXE靶机复现)
(八)Shell函数
Maker-HarmonyOS应用开发培训笔记01
1. Internet foundation
pytorch index_ select
Use NN in pytoch to realize linear regression (simple implementation)
Eye of depth III - (3)] mathematics: matrix eigenvalue and eigenvector 1
Day06 ORM field and operation
MoveIt2——4.机器人模型和机器人状态
(10)文件包含
PCRE绕过正则
C Programming Language(2nd Edition)--读书笔记--1.5.1
(七)流程控制
Day10-前后连调
promise
E-commerce background management login