mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
22 lines
477 B
JavaScript
22 lines
477 B
JavaScript
const { resolve } = require('node:path')
|
|
|
|
module.exports = {
|
|
build: {
|
|
manifest: true,
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, './index.html'),
|
|
other: resolve(__dirname, './other.js'),
|
|
},
|
|
output: {
|
|
manualChunks(id) {
|
|
// make `chunk.css` it's own chunk for easier testing of pure css chunks
|
|
if (id.includes('chunk.css')) {
|
|
return 'chunk'
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|