The goal of this project is to give you a no config template for creating Svelte apps with SCSS.
This project is based off of sveltejs/template.
- Click the
Use this template
- Clone your newly created repo using
git clone <repo_name>
cd <repo_name>
yarn
to install dependencies.
Note: You can also just clone this repo using git clone --bare https://github.com/jefflombard/svelte-sass-boilerplate
and run git init
in the new project.
- Start a local dev server by running
yarn dev
. - On an individual component you can now add the
lang="scss"
attribute.
<style lang="scss">
.main {
p {
color: blue;
}
}
</style>
Notable differences to sveltejs/template
- Use of
live-server
- makes local dev easier. - Sass is preconfigured