mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 13:32:16 +00:00
29 lines
479 B
TypeScript
29 lines
479 B
TypeScript
import { defineConfig } from 'vite'
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: false,
|
|
modulePreload: {
|
|
polyfill: false
|
|
},
|
|
copyPublicDir: false,
|
|
lib: {
|
|
entry: 'lib/index.ts',
|
|
formats: ['es'],
|
|
},
|
|
|
|
rollupOptions: {
|
|
input: [
|
|
"lib/bundle.ts",
|
|
],
|
|
output: {
|
|
dir: "../public/assets/js/",
|
|
format: "es",
|
|
// manualChunks: {
|
|
// lit: ["lit"],
|
|
// }
|
|
}
|
|
},
|
|
},
|
|
})
|