From 34ed4b3ef8da62595ad789be6ca4d37404ea51d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=97=8D?= <50108258+kwaa@users.noreply.github.com> Date: Thu, 10 Mar 2022 14:55:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config):=20=F0=9F=8E=A8=20improve=20st?= =?UTF-8?q?ructure?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 7 +------ tailwind.config.cjs | 5 ++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index 02636d66..a2f1d641 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,11 +6,8 @@ import { mdsvex } from 'mdsvex' import { mdsvexConfig } from './mdsvex.config.js' import Icons from 'unplugin-icons/vite' -/** @type {import('@sveltejs/kit').Config} */ -const config = { +export default /** @type {import('@sveltejs/kit').Config} */ { extensions: ['.svelte', ...mdsvexConfig.extensions], - // Consult https://github.com/sveltejs/svelte-preprocess - // for more information about preprocessors preprocess: [ mdsvex(mdsvexConfig), preprocess({ @@ -43,5 +40,3 @@ const config = { } } } - -export default config diff --git a/tailwind.config.cjs b/tailwind.config.cjs index d5e184de..53a20d7b 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -1,7 +1,8 @@ const typography = require('@tailwindcss/typography') const daisyui = require('daisyui') -const config = { +/** @type {import('tailwindcss/tailwind-config').TailwindConfig} */ +module.exports = { content: ['./src/**/*.{html,md,js,svelte,ts}'], theme: { extend: {} @@ -11,5 +12,3 @@ const config = { themes: ['light', 'dark', 'cupcake', 'emerald', 'valentine', 'synthwave', 'halloween', 'aqua', 'dracula'] } } - -module.exports = config