Comments (2)
@Rubyjunk
Are you experimenting with GitHub Pages or local Jekyll?
For me, the local Jekyll would successfully inject the service worker,
while the GitHub Pages would not.
This is because (according to Jekyll docs)
Plugins on GitHub Pages
GitHub Pages is powered by Jekyll. However, all Pages sites are generated using the --safe option to disable custom plugins for security reasons. Unfortunately, this means your plugins won’t work if you’re deploying to GitHub Pages.
You can still use GitHub Pages to publish your site, but you’ll need to convert the site locally and push the generated static files to your GitHub repository instead of the Jekyll source files.
from jekyll-pwa.
@jizusun Local jekyll with gitlab pages
from jekyll-pwa.
Related Issues (20)
- How to add html pages to runtime cache HOT 2
- AMP support? HOT 9
- Consolidate settings in _config.yml?
- No need to set the cache header for the service worker since Chrome 68
- Trying to make cache fetch work HOT 1
- Content Security Policy
- CSP: feature request HOT 4
- gh-pages support HOT 3
- Please check my installation HOT 15
- Error during service worker registration: TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed HOT 1
- How to clear cache? HOT 1
- Event.initEvent() has been deprecated HOT 2
- How to listen for sw.update? HOT 1
- undefined local variable or method `page' for Jekyll:Module HOT 3
- jekyll-pwa-plugin.rb:161:in `block in <module:Jekyll>': undefined local HOT 6
- Images Not Caching HOT 1
- Migrate from Workbox v2 to v3 HOT 2
- Adding plugins HOT 2
- undefined method `+' for nil :NilClass HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-pwa.