svelte-scss-template

Svelte Scss Template

Implements svelte, scss, and postcss (for autoprefixer)

Svelte & Postcss

I wrote this template so I can easily impliment svelte, scss, and postcss together without having to rewrite it each time. It's based off the official svelte template.

To create your new project degit:

npx degit ghostdevv/svelte-scss-template my-svelte-app
cd my-svelte-app

Setup

cd my-svelte-app
npm install

Commands

We use the commands provided with the official template

  • Dev

    npm run dev
    
  • Build

    npm run build
    
  • Start (uses sirv)

    npm run start
    

Postcss Plugins

These are the postcss plugins we use

  • Autoprefixer

Got a suggestion?

Make a PR! I would love to expand the plugins and features this template uses

Error: "Cannot find any of modules: sass,node-sass"

This is normal, I haven't found a fix for it, scss still works though! Just ignore this issue for now. (this error happens on style tags in components)

Top categories

Loading Svelte Themes