mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-10-12 11:15:50 +02:00
27 lines
795 B
JavaScript
27 lines
795 B
JavaScript
const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
|
|
|
|
module.exports = {
|
|
mode: "aot",
|
|
purge: {
|
|
content: ["./src/**/*.{html,js,svelte,ts}"],
|
|
options: {
|
|
defaultExtractor: (content) => [
|
|
// If this stops working, please open an issue at https://github.com/svelte-add/tailwindcss/issues rather than bothering Tailwind Labs about it
|
|
...tailwindExtractor(content),
|
|
// Match Svelte class: directives (https://github.com/tailwindlabs/tailwindcss/discussions/1731)
|
|
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
|
|
([_match, group, ..._rest]) => group,
|
|
),
|
|
],
|
|
},
|
|
safelist: [/^svelte-[\d\w]+$/],
|
|
},
|
|
theme: {
|
|
extend: {},
|
|
},
|
|
variants: {
|
|
extend: {},
|
|
},
|
|
plugins: [],
|
|
};
|