Cleanup vite.config.js and fix scripts in package.json

- Make sure rm isn't called when there are no files to delete
This commit is contained in:
wjtje 2023-02-09 14:06:23 +01:00
parent f9f1a30921
commit 325b8831f2
No known key found for this signature in database
GPG key ID: 59423E3298612FF3
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,5 @@
import { defineConfig } from "vite"
import { svelte } from "@sveltejs/vite-plugin-svelte"
import autoPreprocess, { scss } from "svelte-preprocess";
import fs from "fs"
const allHtmlFiles = fs.readdirSync(".").filter((f) => f.endsWith(".html"))
@ -19,7 +18,7 @@ export default defineConfig({
},
},
base: `${ASSET_URL}`,
plugins: [svelte({preprocess: [scss() , autoPreprocess()]})],
plugins: [svelte()],
server: {
port: 1234,
},