Skip to content

Commit 78dff8f

Browse files
committed
chore: update vite build script
1 parent c95eda1 commit 78dff8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vite.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export default ({ mode }) => {
2828
if (/png|jpe?g|svg|gif|tiff|bmp|ico/i.test(extType)) {
2929
extType = 'img'
3030
}
31-
return `static/${extType}/[name]-[hash][extname]`
31+
return `static/${extType}/[hash][extname]`
3232
},
33-
chunkFileNames: 'static/js/[name]-[hash].js',
34-
entryFileNames: 'static/js/[name]-[hash].js'
33+
chunkFileNames: 'static/js/[hash].js',
34+
entryFileNames: 'static/js/[hash].js'
3535
},
3636
plugins: []
3737
}

0 commit comments

Comments
 (0)