diff --git a/package.json b/package.json index f7a74e9e6..b5e062e0b 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "generate:charging-stations": "cd ./assets/layers/charging_station && vite-node csvToJson.ts && cd -", "prepare-deploy": "npm run generate:service-worker && ./scripts/build.sh", "format": "npx prettier --write --svelte-bracket-new-line=false --html-whitespace-sensitivity=ignore '**/*.ts' '**/*.svelte'", - "clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)", - "clean": "rm -rf .cache/ && (find *.html | grep -v \"^\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs rm) && (ls | grep \"^index_[a-zA-Z_-]\\+\\.ts$\" | xargs rm) && (ls | grep \".*.webmanifest$\" | grep -v \"manifest.webmanifest\" | xargs rm)", + "clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs -r rm)", + "clean": "rm -rf .cache/ && (find *.html | grep -v \"^\\(404\\|index\\|land\\|test\\|preferences\\|customGenerator\\|professional\\|automaton\\|import_helper\\|import_viewer\\|theme\\).html\" | xargs -r rm) && (ls | grep \"^index_[a-zA-Z_-]\\+\\.ts$\" | xargs -r rm) && (ls | grep \".*.webmanifest$\" | grep -v \"manifest.webmanifest\" | xargs -r rm)", "generate:dependency-graph": "node_modules/.bin/depcruise --exclude \"^node_modules\" --output-type dot Logic/State/MapState.ts > dependencies.dot && dot dependencies.dot -T svg -o dependencies.svg && rm dependencies.dot", "weblate-add-upstream": "git remote add weblate-github git@github.com:weblate/MapComplete.git", "weblate-merge": "git remote update weblate-github; git merge weblate-github/weblate-mapcomplete-core weblate-github/weblate-mapcomplete-layers weblate-github/weblate-mapcomplete-layer-translations", diff --git a/svelte.config.js b/svelte.config.js index 67495293e..dc6efba2a 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,5 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte" + export default { // Consult https://svelte.dev/docs#compile-time-svelte-preprocess // for more information about preprocessors diff --git a/vite.config.js b/vite.config.js index 73114350b..4c710a8f6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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, },