1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-04 04:28:47 +02:00
parent 875c8448e1
commit c81ae4bb6d
219 changed files with 8036 additions and 7 deletions

View file

@ -0,0 +1,45 @@
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import postcss from './postcss.config.js';
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
css: {
postcss,
},
plugins: [svelte({
/* plugin options */
})],
base: './', // fivem nui needs to have local dir reference
resolve: {
alias: {
'@assets': resolve("./src/assets"),
'@components': resolve("./src/components"),
'@providers': resolve("./src/providers"),
'@stores': resolve("./src/stores"),
'@utils': resolve("./src/utils"),
'@typings': resolve("./src/typings"),
'@enums': resolve('./src/enums'),
'@lib': resolve('./src/lib'),
},
},
server: {
port: 3000,
},
build: {
emptyOutDir: true,
outDir: './build',
assetsDir: './',
rollupOptions: {
output: {
// By not having hashes in the name, you don't have to update the manifest, yay!
entryFileNames: `[name].js`,
chunkFileNames: `[name].js`,
assetFileNames: `[name].[ext]`
}
}
}
})