Skip to content

Commit

Permalink
chore: Update Vite config for asset file names and asset inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
edmdz committed Jul 24, 2024
1 parent 5133fa8 commit b47f3e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
})
build: {
rollupOptions: {
output: {
assetFileNames: 'assets/[name].[hash][extname]'
}
}
},
assetsInclude: ['**/*.jpg', '**/*.jpeg']
});

0 comments on commit b47f3e6

Please sign in to comment.