Created
October 17, 2021 15:43
-
-
Save dsebastien/7e6160f55f11b5caef1a025513001ee9 to your computer and use it in GitHub Desktop.
Tailwind configuration for Svelte app in NX
This file contains 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
'use strict'; | |
module.exports = { | |
mode: 'jit', | |
purge: { | |
content: [ | |
'./apps/**/*.{html,svelte,tsx,ts,jsx,js,pcss,scss,css}', | |
'./libs/**/*.{html,svelte,tsx,ts,jsx,js,pcss,scss,css}', | |
], | |
// PurgeCSS options | |
// Reference: https://purgecss.com/ | |
//enable: production, // disable purge in dev | |
options: { | |
rejected: true, | |
printRejected: true, | |
safelist: ['html', 'body', 'dark'], | |
safelistPatterns: [/svelte-/], | |
}, | |
}, | |
/** | |
* Enable dark mode | |
*/ | |
darkMode: 'class', | |
theme: { | |
extend: {}, | |
}, | |
variants: { | |
extend: {}, | |
}, | |
plugins: [], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment