diff --git a/src/main.ts b/src/main.ts index 4ce7112..8efb4f7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,8 +1,14 @@ -import './styles.postcss'; +import './styles.pcss'; import App from './App.svelte'; +const target = document.getElementById('app'); +if (!target) + throw new Error( + "The element with id of 'app' wasn't found on the base html file." + ); + const app = new App({ - target: document.getElementById('app'), + target, intro: true }); diff --git a/src/styles.postcss b/src/styles.pcss similarity index 100% rename from src/styles.postcss rename to src/styles.pcss