koro

an event time scheduler
git clone https://tilde.team/~marisa/repo/koro.git
Log | Files | Refs | README | LICENSE

commit ee8dbe6ac8582354095ee5deda64c5c9da196e3b
parent 7a44b1a5018d8bad0967dba427804835a873b988
Author: mokou <mokou@posteo.de>
Date:   Thu, 21 May 2020 02:26:46 +0200

fix(build): Serve files from /build

Diffstat:
Msrc/pages/Event.svelte | 2+-
Msrc/pages/Index.svelte | 4++--
Mwebpack.config.js | 3++-
3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/pages/Event.svelte b/src/pages/Event.svelte @@ -1,5 +1,5 @@ <script> - + export let params </script> <h1>E!</h1> diff --git a/src/pages/Index.svelte b/src/pages/Index.svelte @@ -90,7 +90,7 @@ supports the user's timezone and works locally, too. </p> -<form class="max-w-xl mt-10" on:submit|preventDefault={submitForm}> +<form class="max-w-xl mt-7" on:submit|preventDefault={submitForm}> {#if errorFlash} <div class="w-full bg-red-100 px-3 py-2 border rounded border-red-400 @@ -100,7 +100,7 @@ {/if} <label for="name" class="font-bold text-gray-600">Your event's name</label> <input - name="name" + id="name" type="text" bind:value={event.name} placeholder="Raid with the boys" /> diff --git a/webpack.config.js b/webpack.config.js @@ -15,10 +15,11 @@ module.exports = { }, mode: prod ? "production" : "development", devServer: { + publicPath: '/build', contentBase: path.join(process.cwd(), "public"), compress: true, port: 3000, - historyApiFallback: true, + historyApiFallback: true }, devtool: !prod && "source-map", optimization: prod && {