forked from MapComplete/MapComplete
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:
parent
f9f1a30921
commit
325b8831f2
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue