Skip to content

Commit fa4d2a5

Browse files
committed
Migrate sw-precache to workbox-cli
1 parent 1ee02eb commit fa4d2a5

File tree

6 files changed

+13784
-4522
lines changed

6 files changed

+13784
-4522
lines changed

Diff for: _config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exclude:
4343
- node_modules
4444
- vendor
4545
- _bin
46-
- sw-precache-config.js
46+
- workbox-config.js
4747

4848
markdown: kramdown
4949
kramdown:

Diff for: _plugins/generate-sw.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Jekyll::Hooks.register :site, :post_write do |site|
2-
result = `./node_modules/.bin/sw-precache --config=sw-precache-config.js --root=_site`
2+
result = `./node_modules/.bin/workbox generateSW workbox-config.js`
33
Jekyll.logger.info 'Generated ServiceWorker'
44
end

0 commit comments

Comments
 (0)