From 91fd92a1dc5480fb8a301d206a04494b4ed1705d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B9=E5=9D=A4?= Date: Fri, 5 Jan 2024 19:36:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20add=20config=20to=20astr?= =?UTF-8?q?o:build:setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astro.config.mjs | 3 +++ postcss.config.cjs | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 192efcdd..b073d720 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -56,6 +56,9 @@ export default defineConfig({ hooks: { "astro:server:setup": async (options) => { await goatConfig(); + }, + "astro:build:setup": async (options) => { + await goatConfig(); } } }, diff --git a/postcss.config.cjs b/postcss.config.cjs index 7d03a4ac..12b2b9ef 100644 --- a/postcss.config.cjs +++ b/postcss.config.cjs @@ -2,11 +2,11 @@ const path = require('path'); module.exports = { plugins: { - //配置css嵌套能力 - 'tailwindcss/nesting':'', + //配置css嵌套能力 + 'tailwindcss/nesting': '', tailwindcss: { - config: path.join(__dirname, 'tailwind.config.mjs'), + config: path.join(__dirname, 'tailwind.config.mjs'), }, autoprefixer: {}, - }, + }, };