https://github.com/kellymears/vanilla-js-graphql-wp-spa
wordpress but with postcss, pug, graphql, tailwind, etc.
https://github.com/kellymears/vanilla-js-graphql-wp-spa
Last synced: about 1 year ago
JSON representation
wordpress but with postcss, pug, graphql, tailwind, etc.
- Host: GitHub
- URL: https://github.com/kellymears/vanilla-js-graphql-wp-spa
- Owner: kellymears
- Created: 2019-05-24T06:31:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:32:37.000Z (over 3 years ago)
- Last Synced: 2024-10-08T18:17:46.983Z (over 1 year ago)
- Language: JavaScript
- Size: 2.45 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vanilla JS Graph QL WordPress Single Page Application
Just a demo of how easy it can be to make a single page application out of your WordPress -- no real need for React, Gatsby, or any of the typical things you see. Granted, it's not fully static like a Gastby site, but we're talking about server payloads that are around 1kb in aggregate.
## How did this come to be
On a recent WordPress theme build I realized that all of the content -- and the theme template pieces themselves -- were being served as WordPress blocks. I started wondering how easy it would be to serve those using something like netlify.
Turns out pretty easy.
## Intention: this is a starting point
This baseline starts you off with almost everything you need to build a killer site.
| Asset | Build size |
| ------------- | ------------- |
|**app.css** | 2.5KB |
|**app.js** | 10.7KB |
|**index.html** | 325B |