Skip to content

Instantly share code, notes, and snippets.

@skflowne
Created August 2, 2020 17:33
Show Gist options
  • Save skflowne/de8f1b9465b2e0163abd30e2c82ce7ce to your computer and use it in GitHub Desktop.
Save skflowne/de8f1b9465b2e0163abd30e2c82ce7ce to your computer and use it in GitHub Desktop.
plugins: [
svelte({
// enable run-time checks when not in production
dev: !production,
// we'll extract any component CSS out into
// a separate file - better for performance
css: (css) => {
css.write("public/build/bundle.css")
},
preprocess: sveltePreprocess({
postcss: true,
scss: {
includePaths: ["src"],
postcss: {
plugins: [require("autoprefixer")],
},
},
}),
}),
// ...other plugins
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment