Skip to content

Instantly share code, notes, and snippets.

@andrasbacsai
Last active November 11, 2021 15:35
Show Gist options
  • Save andrasbacsai/01e0c8505790c0132232a934b41a9268 to your computer and use it in GitHub Desktop.
Save andrasbacsai/01e0c8505790c0132232a934b41a9268 to your computer and use it in GitHub Desktop.
Svelte Config for Netlify Adapter (with postcss)
# This will determine where to write static assets based on the build.publish settings, as per this sample configuration.
# More details: https://github.com/sveltejs/kit/tree/master/packages/adapter-netlify
[build]
command = "npm run build"
publish = "build"
import adapter from '@sveltejs/adapter-netlify';
import preprocess from "svelte-preprocess";
const config = {
kit: {
adapter: adapter(),
target: '#svelte'
},
preprocess: [
preprocess({
postcss: true,
}),
],
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment