baseLineHeight: 1.45,googleFonts: [{name: "Playfair Display",styles: ["800"],},{name: "Roboto",styles: ["400"]}],headerFontFamily: ["Playfair Display", "serif"],bodyFontFamily: ["Roboto", "sans-serif"]});typography.injectStyles();export default typography;...
使用gatsby-plugin-web-font-loader插件来优化字体加载,减少首屏渲染时间: //gatsby-config.js module.exports={ plugins:[ { resolve:`gatsby-plugin-web-font-loader`, options:{ google:{ families:[Roboto:400,700,OpenSans:400,700], }, }, }, ], }; 通过以上步骤,你可以有效地在Gatsby项目中使用主...
google-analytics@2.2.3 - gatsby-plugin-google-gtag@2.0.1 - gatsby-plugin-google-tagmanager@2.2.2 - gatsby-plugin-guess-js@1.2.2 - gatsby-plugin-jss@2.2.2 - gatsby-plugin-layout@1.2.2 - gatsby-plugin-less@3.1.2 - gatsby-plugin-lodash@3.2.2 - gatsby-plugin-manifest@2.3.4 - gatsby-...
Add google tagmanager plugin #1123 @0x80 Support path prefixes for service workers @kyleamathews When a new service worker is loaded, force reload #1217 @kyleamathews www: Make the header fixed for tablets and up #1215 @fk Update on Gatsby Windows instructions #1216 @sebastienfi Improve GQL...