This repo serves as a frontend/static Svelte app project starter to quickly scaffold a new svelte app without worrying about how to configure add-ins and bundling.
npx degit ejolly/create-svelte-app yourAppName cd yourAppNamenpm installnpm run dev and navigate to localhost:5000 in your browserDEV variable available for use anywhere in the app (no import required) that resolves to true when built and served/deployed for production (server launched with npm run build && yourServer public) and false when built for development (server launched with npm run dev).if (DEV){} block to run only during developmentDEV works because of @rollup/plugin-replace which literally does a string replacement based upon how rollup was initialized. This means you can't "react" or "observe" this variable. It's injected when the app is compiled.If you use the recommended extensions in this repo then you should get the following features:
@apply directiveA fast way to go live is to hook up your github repo with Netlify:
npm run buildpublicNow any new pushes to your master branch will automatically update live!
The master branch of this repo serves as the Base configuration for a few other scaffolds. Feel free to submit your own template after forking from master.
This was originally based off of sveltejs/template@431bd4