Switch from svite to vite + vite-plugin-svelte. (#962)

Use cross-env to set environment variables platform independently in scripts.
This commit is contained in:
brunnerh 2021-12-31 19:11:48 +01:00 committed by GitHub
commit 1bc04c5b42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 250 additions and 2044 deletions

View file

@ -1,6 +1,10 @@
module.exports = {
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
export default defineConfig({
plugins: [svelte()],
optimizeDeps: {
include: ["clipboard-copy", "flatpickr/dist/plugins/rangePlugin"],
exclude: ["@sveltech/routify"],
},
};
});