반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- aws
- https
- QUIC
- web vital
- devtools
- CSS
- import.meta.env
- vue3
- vue-cli
- TLS
- Cypress
- rendering
- JavaScript
- api test
- custom command
- CloudFlare
- caching
- 선택자
- Testing
- ts error
- SSR
- typeScript
- ViTE
- http3
- csr
- vue
- e2e
- svelte
- msw
- 비동기
Archives
- Today
- Total
Develop Note by J.S.
[Vue-cli] 빌드 배포 시 Chunk 캐시 (with. Chunk Hash) 본문
반응형
배포 시 남아있는 Cache로 인해 각 chunk 파일들이 cache된 파일을 다운받아 즉각적으로 수정내용이 반영되지 않아 보이는 경우에는 Output 파일에 hash값을 추가하면 해결 할 수 있습니다.
module.exports = {
configureWebpack: (config) => {
config.output.filename = 'js/[name].[chunkhash].js';
config.output.chunkFilename = 'js/[name].[chunkhash].js';
},
}
반응형
'FrontEnd > Vite&Vue-cli' 카테고리의 다른 글
[Vue-cli] 다중 페이지 (Vue Multi-Instance) (0) | 2023.07.28 |
---|---|
[Vite] SourceMap (0) | 2023.07.27 |
[Vite] process.env vs import.meta.env & Migration (0) | 2023.07.12 |
[Vite] Vite 환경변수 활용 (0) | 2023.07.05 |
[Vite] Vite + Vue3 + Typescript (0) | 2023.07.05 |