From e16fbb1c95237bcaa42219b3526cdb524f6e7da5 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Thu, 10 Oct 2024 19:50:32 -0400 Subject: [PATCH] use esmodules/typings where possible --- postcss.config.js | 13 +++++++++---- tailwind.config.js | 6 ++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 2e7af2b..a8ffe39 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,6 +1,11 @@ -export default { +import tailwindcss from 'tailwindcss'; +import autoprefixer from 'autoprefixer'; + +const config = { plugins: { - tailwindcss: {}, - autoprefixer: {}, + tailwindcss, + autoprefixer, }, -} +}; + +export default config; \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 1c3b7e1..21d0560 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,5 +1,5 @@ /** @type {import('tailwindcss').Config} */ -module.exports = { +const config = { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx}", @@ -8,4 +8,6 @@ module.exports = { extend: {}, }, plugins: [], -} +}; + +export default config; \ No newline at end of file