Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ const path = require('path');

module.exports = {
siteMetadata: {
title: `Processing`,
description: `Welcome to the Processing website`,
author: `@processing`,
siteUrl: `https://processing.org/`
},
plugins: [
// `gatsby-plugin-perf-budgets`,
// `gatsby-plugin-webpack-bundle-analyser-v2`,
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-theme-i18n`,
Expand Down
20 changes: 20 additions & 0 deletions gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
Disable inline CSS. This brings the size of the reference from 100MB to 30MB,
just by removing inline CSS which already exists in stand-alone CSS files and
is only used to speed up initial rendering.
**/
export const onPreRenderHTML = ({ getHeadComponents }) => {
if (process.env.NODE_ENV !== 'production') {
return;
}
getHeadComponents().forEach((el) => {
if (el.type === 'style' && el.props['data-href']) {
el.type = 'link';
el.props['href'] = el.props['data-href'];
el.props['rel'] = 'stylesheet';
el.props['type'] = 'text/css';
delete el.props['data-href'];
delete el.props['dangerouslySetInnerHTML'];
}
});
};
226 changes: 226 additions & 0 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
"gatsby-transformer-sharp": "^3.9.0",
"highlight.js": "^11.2.0",
"lodash": "4.17.21",
"luxon": "^1.27.0",
"p5": "^1.4.0",
"postcss": "^8.3.5",
"postcss-calc": "^8.0.0",
"postcss-custom-media": "^8.0.0",
Expand All @@ -85,6 +83,8 @@
"@designsystemsinternational/static": "^3.3.12",
"fast-glob": "^3.2.7",
"fs-extra": "^10.0.0",
"gatsby-plugin-perf-budgets": "0.0.18",
"gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.25",
"inquirer": "^8.1.2",
"prettier": "2.0.5"
},
Expand Down
Loading