[READ-ONLY] Mirror of https://github.com/probablykasper/svelte-template. Svelte + Vite + HMR + TypeScript + Preprocessor support
svelte template
0

Configure Feed

Select the types of activity you want to include in your feed.

Make things work

Kasper (Mar 10, 2021, 6:50 PM +0100) 93564a4c f4c02c26

+9 -12
+1 -1
README.md
··· 7 7 - **Snowpack** for fast builds 8 8 - **esbuild** enabled using `experiments.optimize` setting 9 9 - **Preprocessor support** through `svelte-preprocess` 10 - - Pug and Sass are installed default 10 + - Pug and Sass are installed by default 11 11 - **Hot module replacement** 12 12 - **Prettier** 13 13
public/favicon.png

This is a binary file and will not be displayed.

+3 -2
public/index.html
··· 3 3 <head> 4 4 <meta charset="utf-8" /> 5 5 <meta name="viewport" content="width=device-width,initial-scale=1" /> 6 - <link rel="stylesheet" href="/build/index.css" /> 6 + 7 + <link rel="icon" type="image/png" href="./favicon.png" /> 7 8 </head> 8 9 <body> 9 - <script type="module" src="/build/index.js"></script> 10 + <script defer type="module" src="./build/main.js"></script> 10 11 </body> 11 12 </html>
+5 -9
snowpack.config.js
··· 4 4 src: { url: '/' }, 5 5 }, 6 6 plugins: ['@snowpack/plugin-svelte', '@snowpack/plugin-typescript'], 7 - install: [], 8 - installOptions: {}, 9 7 devOptions: { 10 8 port: 8080, 11 9 open: 'none', ··· 13 11 }, 14 12 buildOptions: { 15 13 out: './public/build', 16 - sourceMaps: true, 14 + sourcemap: true, 17 15 clean: true, 18 16 }, 19 - alias: {}, 20 - experiments: { 21 - optimize: { 22 - entrypoints: ['src/index.ts'], 23 - bundle: true, 24 - }, 17 + optimize: { 18 + entrypoints: ['src/index.ts'], 19 + bundle: true, 20 + target: ['chrome64', 'es2020'], 25 21 }, 26 22 } 27 23 if (process.env.NODE_ENV === 'development') {
src/index.ts src/main.ts