mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
16 lines
595 B
JavaScript
16 lines
595 B
JavaScript
// Replaces the deprecated @astrojs/tailwind integration (Astro <= 5 only):
|
|
// Tailwind v3 runs as a plain PostCSS plugin, which Astro/Vite picks up
|
|
// automatically from this file. The config path is resolved explicitly so the
|
|
// build does not depend on the process working directory.
|
|
import { fileURLToPath } from 'node:url';
|
|
import autoprefixer from 'autoprefixer';
|
|
import tailwindcss from 'tailwindcss';
|
|
|
|
const tailwindConfig = fileURLToPath(
|
|
new URL('./tailwind.config.mjs', import.meta.url),
|
|
);
|
|
|
|
export default {
|
|
plugins: [tailwindcss({ config: tailwindConfig }), autoprefixer()],
|
|
};
|