diff --git a/gatsby-config.js b/gatsby-config.js index 57972f519ef08..28056715d3689 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -515,6 +515,13 @@ module.exports = { policy: [{ userAgent: "*", allow: "/" }], }, }, + { + resolve: "gatsby-plugin-purgecss", + options: { + printRejected: true, + } + }, + "gatsby-plugin-preact", "gatsby-plugin-meta-redirect", // make sure this is always the last one ], diff --git a/package-lock.json b/package-lock.json index 8409ea2ae9e06..309b229dd149d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,6 +49,7 @@ "gatsby-plugin-mdx": "^5.15.0", "gatsby-plugin-meta-redirect": "github:layer5labs/gatsby-plugin-meta-redirect", "gatsby-plugin-netlify": "^5.1.1", + "gatsby-plugin-preact": "^7.15.0", "gatsby-plugin-preload-fonts": "^4.15.0", "gatsby-plugin-purgecss": "^6.2.1", "gatsby-plugin-robots-txt": "^1.8.0", @@ -68,6 +69,8 @@ "mini-css-extract-plugin": "^2.9.2", "mui-datatables": "^4.3.0", "node-gyp": "^12.1.0", + "preact": "^10.27.2", + "preact-render-to-string": "^6.6.3", "prism-react-renderer": "^2.0.6", "prop-types": "^15.8.1", "react": "^18.2.0", @@ -3039,6 +3042,16 @@ "preact": "~10.12.1" } }, + "node_modules/@fullcalendar/core/node_modules/preact": { + "version": "10.12.1", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.12.1.tgz", + "integrity": "sha512-l8386ixSsBdbreOAkqtrwqHwdvR35ID8c3rKPa8lCWuO86dBi32QWHV4vfsZK1utLLFMvw+Z5Ad4XLkZzchscg==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, "node_modules/@fullcalendar/daygrid": { "version": "6.1.19", "license": "MIT", @@ -6561,6 +6574,42 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@prefresh/babel-plugin": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@prefresh/babel-plugin/-/babel-plugin-0.4.4.tgz", + "integrity": "sha512-/EvgIFMDL+nd20WNvMO0JQnzIl1EJPgmSaSYrZUww7A+aSdKsi37aL07TljrZR1cBMuzFxcr4xvqsUQLFJEukw==", + "license": "MIT" + }, + "node_modules/@prefresh/core": { + "version": "1.5.9", + "resolved": "https://registry.npmjs.org/@prefresh/core/-/core-1.5.9.tgz", + "integrity": "sha512-IKBKCPaz34OFVC+adiQ2qaTF5qdztO2/4ZPf4KsRTgjKosWqxVXmEbxCiUydYZRY8GVie+DQlKzQr9gt6HQ+EQ==", + "license": "MIT", + "peerDependencies": { + "preact": "^10.0.0 || ^11.0.0-0" + } + }, + "node_modules/@prefresh/utils": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@prefresh/utils/-/utils-1.2.1.tgz", + "integrity": "sha512-vq/sIuN5nYfYzvyayXI4C2QkprfNaHUQ9ZX+3xLD8nL3rWyzpxOm1+K7RtMbhd+66QcaISViK7amjnheQ/4WZw==", + "license": "MIT" + }, + "node_modules/@prefresh/webpack": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@prefresh/webpack/-/webpack-3.3.4.tgz", + "integrity": "sha512-RiXS/hvXDup5cQw/267kxkKie81kxaAB7SFbkr8ppshobDEzwgUN1tbGbHNx6Uari0Ql2XByC6HIgQGpaq2Q7w==", + "license": "MIT", + "dependencies": { + "@prefresh/core": "^1.3.3", + "@prefresh/utils": "^1.1.2" + }, + "peerDependencies": { + "@prefresh/babel-plugin": "^0.4.0", + "preact": "^10.4.0", + "webpack": "^4.0.0 || ^5.0.0" + } + }, "node_modules/@react-dnd/asap": { "version": "4.0.1", "license": "MIT" @@ -16528,6 +16577,26 @@ "gatsby": "^5.0.0-next" } }, + "node_modules/gatsby-plugin-preact": { + "version": "7.15.0", + "resolved": "https://registry.npmjs.org/gatsby-plugin-preact/-/gatsby-plugin-preact-7.15.0.tgz", + "integrity": "sha512-eazoh7yC5aBPshgHCDYbu5xMh1UeHRCXz98pOMeWrqUJNTq6h70U11oNVk8RXuNIy474ioXuUKgk1xVsI8W3KA==", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.13", + "@gatsbyjs/webpack-hot-middleware": "^2.25.3", + "@prefresh/babel-plugin": "^0.4.3", + "@prefresh/webpack": "^3.3.4" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "gatsby": "^5.0.0-next", + "preact": "^10.3.4", + "preact-render-to-string": "^5.1.8" + } + }, "node_modules/gatsby-plugin-preload-fonts": { "version": "4.15.0", "license": "ISC", @@ -26559,13 +26628,24 @@ "license": "MIT" }, "node_modules/preact": { - "version": "10.12.1", + "version": "10.27.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.27.2.tgz", + "integrity": "sha512-5SYSgFKSyhCbk6SrXyMpqjb5+MQBgfvEKE/OC+PujcY34sOpqtr+0AZQtPYx5IA6VxynQ7rUPCtKzyovpj9Bpg==", "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" } }, + "node_modules/preact-render-to-string": { + "version": "6.6.3", + "resolved": "https://registry.npmjs.org/preact-render-to-string/-/preact-render-to-string-6.6.3.tgz", + "integrity": "sha512-7oHG7jzjriqsFPkSPiPnzrQ0GcxFm6wOkYWNdStK5Ks9YlWSQQXKGBRAX4nKDdqX7HAQuRvI4pZNZMycK4WwDw==", + "license": "MIT", + "peerDependencies": { + "preact": ">=10 || >= 11.0.0-0" + } + }, "node_modules/prebuild-install": { "version": "7.1.3", "license": "MIT", diff --git a/package.json b/package.json index 4ec6f3cd145be..e08df578fa495 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "gatsby-plugin-mdx": "^5.15.0", "gatsby-plugin-meta-redirect": "github:layer5labs/gatsby-plugin-meta-redirect", "gatsby-plugin-netlify": "^5.1.1", + "gatsby-plugin-preact": "^7.15.0", "gatsby-plugin-preload-fonts": "^4.15.0", "gatsby-plugin-purgecss": "^6.2.1", "gatsby-plugin-robots-txt": "^1.8.0", @@ -86,6 +87,8 @@ "lodash": "^4.17.21", "mini-css-extract-plugin": "^2.9.2", "mui-datatables": "^4.3.0", + "preact": "^10.27.2", + "preact-render-to-string": "^6.6.3", "node-gyp": "^12.1.0", "prism-react-renderer": "^2.0.6", "prop-types": "^15.8.1",