mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 13:35:11 +00:00
match webpack error page with rollup one
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<p>{error.message}</p>
|
<p>{error.message}</p>
|
||||||
|
|
||||||
{#if NODE_ENV === 'development' && error.stack}
|
{#if dev && error.stack}
|
||||||
<pre>{error.stack}</pre>
|
<pre>{error.stack}</pre>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
helpers: {
|
helpers: {
|
||||||
NODE_ENV: process.env.NODE_ENV
|
dev: process.env.NODE_ENV === 'development'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user