Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code #17

Merged
merged 23 commits into from
Feb 5, 2021
Merged

Refactor code #17

merged 23 commits into from
Feb 5, 2021

Conversation

jiangtj
Copy link
Member

@jiangtj jiangtj commented Feb 2, 2021

I copied and modified part of the workbox-build code to generate the sw content with String Type

Currently does not support glob* related configuration, others are testing (glob* matches disk files, but before hexo generated, the content of the file is stored in memory. I need other matching schemes. Currently, only the content of pages is precaching)

If you want to use the test version, run the following command

yarn add @jiangtj/hexo-next-pwa@next

BC

  1. remove cdn and disableDevLogs options
  2. js-yaml-js-types seems something wrong,!!js/regexp /\.(?:js|css)$/ change into regexp:\.(?:js|css)$..

@jiangtj jiangtj merged commit 144b47e into master Feb 5, 2021
@jiangtj jiangtj deleted the dev branch February 5, 2021 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant