diff --git a/public/index.html b/public/index.html index d7b8b3d..9521686 100755 --- a/public/index.html +++ b/public/index.html @@ -1,10 +1,10 @@ - +
- - + + - + diff --git a/snowpack.config.js b/snowpack.config.js index bb19282..b491e75 100755 --- a/snowpack.config.js +++ b/snowpack.config.js @@ -1,13 +1,10 @@ /** @type {import("snowpack").SnowpackUserConfig } */ module.exports = { mount: { - public: {url: '/', static: true}, - src: {url: '/dist'}, + public: { url: '/', static: true }, + src: { url: '/dist' }, }, - plugins: [ - '@snowpack/plugin-svelte', - '@snowpack/plugin-typescript', - ], + plugins: ['@snowpack/plugin-svelte', '@snowpack/plugin-typescript'], install: [], installOptions: {}, devOptions: { @@ -17,11 +14,11 @@ module.exports = { buildOptions: { out: './build', sourceMaps: true, - }, + }, alias: {}, experiments: { optimize: { bundle: true, }, }, -}; +} diff --git a/src/App.svelte b/src/App.svelte index 68ab51a..58f0332 100755 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,15 +1,15 @@ - - - - + main h1 Hello world p Edit #[code src/Counter.svelte] to trigger HMR diff --git a/src/Counter.svelte b/src/Counter.svelte index 8ce4df4..cc91e82 100644 --- a/src/Counter.svelte +++ b/src/Counter.svelte @@ -1,14 +1,14 @@ - - - + p Counter: #[code {count}] seconds diff --git a/src/index.ts b/src/index.ts index 02a8171..d64d0d9 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,14 @@ -import App from "./App.svelte"; +import App from './App.svelte' var app = new App({ target: document.body, -}); +}) -export default app; +export default app // The code below enables HMR interface ImportMeta { - [hot: string]: any; + [hot: string]: any } const meta: ImportMeta = import.meta if (meta.hot) { diff --git a/svelte.config.js b/svelte.config.js index 29cb7fe..65dd069 100755 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -const autoPreprocess = require('svelte-preprocess'); +const autoPreprocess = require('svelte-preprocess') module.exports = { preprocess: autoPreprocess({ @@ -9,4 +9,4 @@ module.exports = { pretty: true, }, }), -}; +} diff --git a/types/static.d.ts b/types/static.d.ts index 90e5ade..36a9194 100755 --- a/types/static.d.ts +++ b/types/static.d.ts @@ -3,57 +3,57 @@ // CSS MODULES declare module '*.module.css' { - const classes: { [key: string]: string }; - export default classes; + const classes: { [key: string]: string } + export default classes } declare module '*.module.scss' { - const classes: { [key: string]: string }; - export default classes; + const classes: { [key: string]: string } + export default classes } declare module '*.module.sass' { - const classes: { [key: string]: string }; - export default classes; + const classes: { [key: string]: string } + export default classes } declare module '*.module.less' { - const classes: { [key: string]: string }; - export default classes; + const classes: { [key: string]: string } + export default classes } declare module '*.module.styl' { - const classes: { [key: string]: string }; - export default classes; + const classes: { [key: string]: string } + export default classes } // CSS -declare module '*.css'; -declare module '*.scss'; -declare module '*.sass'; -declare module '*.less'; -declare module '*.styl'; +declare module '*.css' +declare module '*.scss' +declare module '*.sass' +declare module '*.less' +declare module '*.styl' // IMAGES declare module '*.svg' { - const ref: string; - export default ref; + const ref: string + export default ref } declare module '*.bmp' { - const ref: string; - export default ref; + const ref: string + export default ref } declare module '*.gif' { - const ref: string; - export default ref; + const ref: string + export default ref } declare module '*.jpg' { - const ref: string; - export default ref; + const ref: string + export default ref } declare module '*.jpeg' { - const ref: string; - export default ref; + const ref: string + export default ref } declare module '*.png' { - const ref: string; - export default ref; + const ref: string + export default ref } // CUSTOM