Skip to content

Commit

Permalink
feat: 🎸 add config to astro:build:setup
Browse files Browse the repository at this point in the history
  • Loading branch information
丹坤 committed Jan 5, 2024
1 parent ccc5d6f commit 91fd92a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ export default defineConfig({
hooks: {
"astro:server:setup": async (options) => {
await goatConfig();
},
"astro:build:setup": async (options) => {
await goatConfig();
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
},
},
};

0 comments on commit 91fd92a

Please sign in to comment.