Skip to content

Commit

Permalink
add @playform/inline to lazy load css
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Apr 26, 2024
1 parent 3994dc1 commit a2f24fb
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import compress from "@playform/compress";
import playformInline from "@playform/inline";
import robotsTxt from "astro-robots-txt";
import { defineConfig, sharpImageService } from "astro/config";

// https://astro.build/config
export default defineConfig({
site: "https://tools.yeecord.com",
trailingSlash: "never",
Expand All @@ -23,6 +25,7 @@ export default defineConfig({
sitemapBaseFileName: "sitemap-index",
}),
mdx(),
playformInline(),
],
image: {
service: sharpImageService(),
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@astrojs/sitemap": "^3.1.2",
"@astrojs/tailwind": "^5.1.0",
"@playform/compress": "^0.0.2",
"@playform/inline": "^0.0.2",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.1.4",
Expand Down
39 changes: 39 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2f24fb

Please sign in to comment.