A starter for building Svelte web apps, with PostCSS supported.
Install using degit:
npx degit github:noprodev/svelte-starter-postcss your-project-folder
cd your-project-folder
Then, install the dependencies:
npm install
postcss.config.js
).<!-- App.svelte -->
<style>
main {
width: 35em;
margin: 1.5em auto;
/* Nesting */
& > h1 {
/* Color manipulation */
color: color-mod(#0000ff shade(20%));
}
}
</style>
<main>
<h1>Hello World!</h1>
</main>
npm run build
Development mode will:
localhost:5000
npm run dev
Inspired by sveltejs/template