Skip to content

Instantly share code, notes, and snippets.

@Paratron
Created October 23, 2020 13:20
Show Gist options
  • Save Paratron/6ff1003946abe2945160326c9db6375f to your computer and use it in GitHub Desktop.
Save Paratron/6ff1003946abe2945160326c9db6375f to your computer and use it in GitHub Desktop.
Svelte + Typescript + SASS
npx create-snowpack-app [NAME] --template @snowpack/app-template-svelte-typescript
npm i -d sass
// ====================================================================
// svelte.config.js
// ====================================================================
const autoPreprocess = require('svelte-preprocess');
module.exports = {
preprocess: autoPreprocess({
defaults: {
script: 'typescript'
},
scss: {
includePaths: ['src'],
},
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment