mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-09-14 17:50:30 +02:00
🚨 Format and lint files
This commit is contained in:
parent
7582c75699
commit
7745dba5f9
@ -15,7 +15,8 @@ module.exports = {
|
||||
|
||||
autoprefixer,
|
||||
|
||||
!dev && cssnano({
|
||||
!dev &&
|
||||
cssnano({
|
||||
preset: "default",
|
||||
}),
|
||||
],
|
||||
|
@ -1,2 +1,5 @@
|
||||
<h1>Welcome to SvelteKit</h1>
|
||||
<p>Visit <a class="text-blue-600 underline" href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
|
||||
<p>
|
||||
Visit <a class="text-blue-600 underline" href="https://kit.svelte.dev">kit.svelte.dev</a> to read the
|
||||
documentation
|
||||
</p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import preprocess from 'svelte-preprocess';
|
||||
import preprocess from "svelte-preprocess";
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
@ -6,14 +6,14 @@ const config = {
|
||||
// for more information about preprocessors
|
||||
preprocess: [
|
||||
preprocess({
|
||||
postcss: true
|
||||
postcss: true,
|
||||
}),
|
||||
],
|
||||
|
||||
kit: {
|
||||
// hydrate the <div id="svelte"> element in src/app.html
|
||||
target: '#svelte'
|
||||
}
|
||||
target: "#svelte",
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -3,15 +3,15 @@ const { tailwindExtractor } = require("tailwindcss/lib/lib/purgeUnusedStyles");
|
||||
module.exports = {
|
||||
mode: "aot",
|
||||
purge: {
|
||||
content: [
|
||||
"./src/**/*.{html,js,svelte,ts}",
|
||||
],
|
||||
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),
|
||||
...[...content.matchAll(/(?:class:)*([\w\d-/:%.]+)/gm)].map(
|
||||
([_match, group, ..._rest]) => group,
|
||||
),
|
||||
],
|
||||
},
|
||||
safelist: [/^svelte-[\d\w]+$/],
|
||||
|
Loading…
Reference in New Issue
Block a user