run vite in docker

This commit is contained in:
Lukas Hass 2022-01-31 17:36:38 +01:00
parent d84a7536ca
commit 3d6b8b6063
No known key found for this signature in database
GPG Key ID: 7C8CEF72C4039178
2 changed files with 4 additions and 1 deletions

View File

@ -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",

View File

@ -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(),