diff --git a/front/package.json b/front/package.json index 28965b26..1dfb8c82 100644 --- a/front/package.json +++ b/front/package.json @@ -75,7 +75,7 @@ "scripts": { "start": "run-p templater serve svelte-check-watch typesafe-i18n", "templater": "cross-env ./templater.sh", - "serve": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" webpack serve --open", + "serve": "cross-env vite --host", "build": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production webpack", "build-typings": "cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack.json\" NODE_ENV=production BUILD_TYPINGS=1 webpack", "test": "cross-env TS_NODE_PROJECT=\"tsconfig-for-jasmine.json\" ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json", diff --git a/front/vite.config.ts b/front/vite.config.ts index 33009e2a..200e2ade 100644 --- a/front/vite.config.ts +++ b/front/vite.config.ts @@ -4,6 +4,9 @@ import { envConfig } from "@geprog/vite-plugin-env-config"; import sveltePreprocess from "svelte-preprocess"; export default defineConfig({ + server: { + port: 8080, + }, plugins: [ svelte({ preprocess: sveltePreprocess(),