Skip to content

Commit

Permalink
build : 브라우저 캐시 방지를 위한 해시 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWook committed Jan 16, 2025
1 parent 1207155 commit 016d9f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import { visualizer } from 'rollup-plugin-visualizer';
export default defineConfig(({ command }) => ({
build: {
rollupOptions: {
// 브라우저 캐시떄문에 해시값 적용
output: {
entryFileNames: '[name].[hash].js',
chunkFileNames: '[name].[hash].js',
assetFileNames: '[name].[hash].[ext]'
},
external: [/\.stories\.(t|j)sx?$/, /\.story\.(t|j)sx?$/]
}
},
Expand Down

0 comments on commit 016d9f1

Please sign in to comment.