1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2024-11-24 17:07:00 +02:00
pocketbase/ui/vite.config.js
2022-07-07 00:19:05 +03:00

33 lines
825 B
JavaScript

import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
// see https://vitejs.dev/config
export default defineConfig({
envPrefix: 'PB',
base: process.env.NODE_ENV === 'production' ? '/_/' : './',
build: {
chunkSizeWarningLimit: 1000,
reportCompressedSize: false,
},
plugins: [
svelte({
experimental: {
useVitePreprocess: true
}
}),
],
resolve: {
alias: {
'@': __dirname + '/src',
}
},
css: {
preprocessorOptions: {
scss: {
includePaths: [__dirname + '/src/scss'],
prependData: `@import "${__dirname}/src/scss/mixins"; @import "${__dirname}/src/scss/vars";`,
},
},
},
})