Since its release, GraphQL has become increasingly popular and is being used by an ever growing number of development teams. Why?  It's simple, G

GraphQL Static Site Generator (SSG)

submited by
Style Pass
2021-05-21 12:00:08

Since its release, GraphQL has become increasingly popular and is being used by an ever growing number of development teams. Why? It's simple, GraphQL makes it easy to describe complex data relationships and can be utilized with any programming language. The growing popularity has generated a supply of tools to harness the power of GraphQL in many aspects of modern software development. One of the exmaples is GraphQL Static Site Generator

GraphQL Static Site Generator (GraphQL SSG) is a simple bundler for GraphQL-based website using ES Modules. What makes it unique is that it uses browser instead of Node for bundling.

Install GraphQL SSG globally using npm i -g graphql-ssg then initilaize the new project with graphql-ssg --init. which would create graphql-ssg.json in current directory. The package.json is not required but if you need type completions feel free to add one.

Config file is injected. It is available only inside export default and export const head function to prevent leaking of secrets.

Leave a Comment