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: {}, - }, + }, };