diff --git a/next.config.mjs b/next.config.mjs index 53601920..6e7054c7 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -11,6 +11,7 @@ const nextConfig = { maxInactiveAge: 60 * 1000, }, experimental: { + optimizeCss: true, optimizePackageImports: ['lucide-react', 'framer-motion', '@/components/ui'], }, productionBrowserSourceMaps: false, diff --git a/package.json b/package.json index c6b62712..879ccb6c 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@vitest/ui": "^4.0.16", "autoprefixer": "^10.4.23", "cheerio": "^1.2.0", + "critters": "^0.0.25", "eslint": "^9.18.0", "happy-dom": "^20.6.1", "husky": "^9.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8e11dd27..209596d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -198,6 +198,9 @@ importers: cheerio: specifier: ^1.2.0 version: 1.2.0 + critters: + specifier: ^0.0.25 + version: 0.0.25 eslint: specifier: ^9.18.0 version: 9.39.2(jiti@2.6.1) @@ -3694,6 +3697,10 @@ packages: engines: {node: '>=0.8'} hasBin: true + critters@0.0.25: + resolution: {integrity: sha512-ROF/tjJyyRdM8/6W0VqoN5Ql05xAGnkf5b7f3sTEl1bI5jTQQf8O918RD/V9tEb9pRY/TKcvJekDbJtniHyPtQ==} + deprecated: Ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. If you'd like to keep using Critters, please switch to the actively-maintained fork at https://github.com/danielroe/beasties + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -6115,6 +6122,9 @@ packages: resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==} engines: {node: '>= 0.4'} + postcss-media-query-parser@0.2.3: + resolution: {integrity: sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig==} + postcss-modules-extract-imports@3.1.0: resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==} engines: {node: ^10 || ^12 || >= 14} @@ -11236,6 +11246,16 @@ snapshots: crc-32@1.2.2: {} + critters@0.0.25: + dependencies: + chalk: 4.1.2 + css-select: 5.2.2 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + htmlparser2: 8.0.2 + postcss: 8.5.6 + postcss-media-query-parser: 0.2.3 + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -14216,6 +14236,8 @@ snapshots: possible-typed-array-names@1.1.0: {} + postcss-media-query-parser@0.2.3: {} + postcss-modules-extract-imports@3.1.0(postcss@8.5.6): dependencies: postcss: 8.5.6