Skip to content

Instantly share code, notes, and snippets.

@juliangroen
Created October 1, 2020 07:01
Show Gist options
  • Save juliangroen/a504847795baee63ab6b01cd14733647 to your computer and use it in GitHub Desktop.
Save juliangroen/a504847795baee63ab6b01cd14733647 to your computer and use it in GitHub Desktop.
Tailwindcss config file for use with https://github.com/sarioglu/svelte-tailwindcss-template
module.exports = {
purge: {
mode: 'all',
content: ['./**/**/*.html', './**/**/*.svelte'],
options: {
whitelistPatterns: [/svelte-/],
defaultExtractor: (content) => [...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(([_match, group, ..._rest]) => group),
},
},
theme: {
extend: {},
},
variants: {},
plugins: [],
future: {
purgeLayersByDefault: true,
removeDeprecatedGapUtilities: true,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment