42 lines
3.2 KiB
JavaScript
42 lines
3.2 KiB
JavaScript
// vite.config.js
|
|
import { defineConfig } from "file:///Users/mariebirner/PrivateDev/rot/frontend/node_modules/vite/dist/node/index.js";
|
|
import { viteStaticCopy } from "file:///Users/mariebirner/PrivateDev/rot/frontend/node_modules/vite-plugin-static-copy/dist/index.js";
|
|
var vite_config_default = defineConfig({
|
|
plugins: [
|
|
viteStaticCopy({
|
|
targets: [
|
|
{
|
|
src: "./static/[!.]*",
|
|
dest: "./"
|
|
}
|
|
]
|
|
})
|
|
],
|
|
publicDir: false,
|
|
// disable copy `public/` to outDir
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: "./main.ts"
|
|
// Example for more entry points
|
|
// test: './src/test.ts',
|
|
},
|
|
output: {
|
|
entryFileNames: "[name].js",
|
|
assetFileNames: "[name].css"
|
|
}
|
|
},
|
|
manifest: true,
|
|
// generate manifest.json in outDir
|
|
outDir: "../static/"
|
|
},
|
|
css: {
|
|
devSourcemap: true
|
|
// disabled by default because of performance reasons
|
|
}
|
|
});
|
|
export {
|
|
vite_config_default as default
|
|
};
|
|
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvbWFyaWViaXJuZXIvUHJpdmF0ZURldi9yb3QvZnJvbnRlbmRcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIi9Vc2Vycy9tYXJpZWJpcm5lci9Qcml2YXRlRGV2L3JvdC9mcm9udGVuZC92aXRlLmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vVXNlcnMvbWFyaWViaXJu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