refactor: update configuration files to use ES module syntax and integrate Tailwind CSS

This commit is contained in:
2026-05-04 20:13:20 -03:00
committed by hueso
parent 98c6e04a16
commit 4469ccb30a
4 changed files with 6 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
module.exports = { export default {
plugins: { plugins: {
tailwindcss: {},
autoprefixer: {}, autoprefixer: {},
}, },
}; };

View File

@@ -1,7 +1,5 @@
@import './base.css'; @import "./base.css" layer(base);
@tailwind base; @import "tailwindcss";
@tailwind components;
@tailwind utilities;
#app { #app {
width: 100%; width: 100%;

View File

@@ -1,5 +1,5 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}", "./src/**/*.vue"], content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}", "./src/**/*.vue"],
theme: { theme: {
extend: {}, extend: {},

View File

@@ -4,6 +4,7 @@ import { execSync } from "node:child_process";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue"; import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx"; import vueJsx from "@vitejs/plugin-vue-jsx";
import tailwindcss from "@tailwindcss/vite";
import svgLoader from "vite-svg-loader"; import svgLoader from "vite-svg-loader";
function sh(cmd: string): string { function sh(cmd: string): string {
@@ -46,7 +47,7 @@ export default defineConfig({
}, },
}, },
}, },
plugins: [vue(), vueJsx(), svgLoader()], plugins: [vue(), vueJsx(), tailwindcss(), svgLoader()],
resolve: { resolve: {
alias: { alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)), "@": fileURLToPath(new URL("./src", import.meta.url)),