public dir to false
This commit is contained in:
@@ -3,10 +3,8 @@ import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
export default defineConfig({
|
||||
// Svelte
|
||||
plugins: [svelte()],
|
||||
|
||||
// Inject style variables
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
@@ -22,14 +20,18 @@ export default defineConfig({
|
||||
$src: resolve('src/'),
|
||||
},
|
||||
},
|
||||
publicDir: 'static',
|
||||
|
||||
publicDir: false,
|
||||
|
||||
clearScreen: false,
|
||||
|
||||
server: {
|
||||
strictPort: true,
|
||||
port: 3000,
|
||||
},
|
||||
|
||||
envPrefix: ['VITE_', 'TAURI_'],
|
||||
|
||||
build: {
|
||||
target: ['es2021', 'chrome100', 'safari13'],
|
||||
minify: !process.env.TAURI_DEBUG ? 'esbuild' : false,
|
||||
|
||||
Reference in New Issue
Block a user