Skip to content

Instantly share code, notes, and snippets.

@dsebastien
Last active December 25, 2022 03:55
Show Gist options
  • Save dsebastien/ee1074928d46f55d0cdcee2d8badfc17 to your computer and use it in GitHub Desktop.
Save dsebastien/ee1074928d46f55d0cdcee2d8badfc17 to your computer and use it in GitHub Desktop.
Svelte config that loads the postcss config
const sveltePreprocess = require('svelte-preprocess');
module.exports = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: sveltePreprocess({
// WARNING: Mandatory for the postcss config (postcss.config.js) and Tailwind to be loaded
postcss: {}, // <------ this is the important part :)
}), // can pass the options here using { }, but we use svelte.preprocess.config.js for that (gives us more context)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment