start updating template for v3

This commit is contained in:
Rich Harris
2019-01-31 14:44:24 -05:00
parent be4747861e
commit 8d259871f1
6 changed files with 84 additions and 83 deletions

View File

@@ -1,14 +1,9 @@
<svelte:head>
<title>{status}</title>
</svelte:head>
<script>
export let status;
export let error;
<h1>{status}</h1>
<p>{error.message}</p>
{#if dev && error.stack}
<pre>{error.stack}</pre>
{/if}
const dev = process.env.NODE_ENV === 'development';
</script>
<style>
h1, p {
@@ -32,10 +27,14 @@
}
</style>
<script>
export default {
helpers: {
dev: process.env.NODE_ENV === 'development'
}
};
</script>
<svelte:head>
<title>{status}</title>
</svelte:head>
<h1>{status}</h1>
<p>{error.message}</p>
{#if dev && error.stack}
<pre>{error.stack}</pre>
{/if}