From 3d6b8b6063b8e72f5c79565a8a745c9f85c7a63d Mon Sep 17 00:00:00 2001 From: Lukas Hass Date: Mon, 31 Jan 2022 17:36:38 +0100 Subject: [PATCH] run vite in docker --- front/package.json | 2 +- front/vite.config.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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(),