Skip to content

Commit

Permalink
refactor(config): 🎨 improve structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Mar 10, 2022
1 parent 7ba909c commit 34ed4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 1 addition & 6 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -43,5 +40,3 @@ const config = {
}
}
}

export default config
5 changes: 2 additions & 3 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -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: {}
Expand All @@ -11,5 +12,3 @@ const config = {
themes: ['light', 'dark', 'cupcake', 'emerald', 'valentine', 'synthwave', 'halloween', 'aqua', 'dracula']
}
}

module.exports = config

0 comments on commit 34ed4b3

Please sign in to comment.