Skip to content

Commit

Permalink
refactor: update Node version and modernize config imports
Browse files Browse the repository at this point in the history
Updates Node.js version to 22.12.0 for latest features
Converts Tailwind config to use ES modules instead of CommonJS
Simplifies plugin imports with direct named imports

This change modernizes the project configuration patterns
  • Loading branch information
ccbikai committed Dec 22, 2024
1 parent 0dc8f6e commit a558438
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
22.12.0
10 changes: 6 additions & 4 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/** @type {import('tailwindcss').Config} */
const { addDynamicIconSelectors } = require('@iconify/tailwind')
import { addDynamicIconSelectors } from '@iconify/tailwind'
import typography from '@tailwindcss/typography'
import animate from 'tailwindcss-animate'

module.exports = {
export default {
darkMode: ['class'],
content: [
'./{app,components}/**/*.{html,js,jsx,md,mdx,ts,tsx}',
Expand Down Expand Up @@ -72,8 +74,8 @@ module.exports = {
},
},
plugins: [
require('@tailwindcss/typography'),
require('tailwindcss-animate'),
typography,
animate,
addDynamicIconSelectors(),
],
}

0 comments on commit a558438

Please sign in to comment.