Last active
November 11, 2021 15:35
-
-
Save andrasbacsai/01e0c8505790c0132232a934b41a9268 to your computer and use it in GitHub Desktop.
Svelte Config for Netlify Adapter (with postcss)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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