A Svelte template with support for SASS / SCSS.
The Svelte Template with SASS Support is a Svelte app based on the project template found at https://github.com/sveltejs/template. It includes SASS/SCSS support through the use of svelte-preprocess. This template also provides out-of-the-box VSCode syntax highlighting, thanks to the svelte.config.js file. The app can handle various other processors enabled by svelte-preprocess such as pug, coffeescript, less, sass, stylus, postcss, and globalStyle. The project includes node-sass as a dependency for SASS support, but additional packages need to be installed for other processor support, like PostCSS.
<style global> into global styles using the globalStyle processor.To start fresh with the Svelte Template with SASS Support, clone the template using the command:
degit dceddia/svelte-template-sass
If you already have an existing project and want to add SASS support, follow these steps:
npm install svelte-preprocess node-sass
The Svelte Template with SASS Support is a project template based on the Svelte app template with added SASS/SCSS support through svelte-preprocess. It includes out-of-the-box VSCode syntax highlighting and can handle various other processors enabled by svelte-preprocess such as pug, coffeescript, less, stylus, postcss, and globalStyle. The template requires node-sass as a dependency for SASS support and provides instructions for installation and integration into new or existing projects.