Add tailwind and Monaco

This commit is contained in:
Sidharth Vinod
2021-05-09 18:10:52 +05:30
parent f9fee87fca
commit be3b763838
14 changed files with 1196 additions and 368 deletions
+26
View File
@@ -0,0 +1,26 @@
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: [],
};