hexo-filter-jsdelivr-auto-fallback

0.1.0 • Public • Published

hexo-filter-jsdelivr-auto-fallback

NPM Version hexo-filter-jsdelivr-auto-fallback npm license

Add jsdelivr-auto-fallback to hexo site automatically. Read more about 'jsdelivr-auto-fallback'.

Installations

npm i hexo-filter-jsdelivr-auto-fallback

Options

jsdelivr_auto_fallback:
  enable: true
  add_defer: true
  dest_list:
    - cdn.jsdelivr.net
    - fastly.jsdelivr.net
    - gcore.jsdelivr.net
  • enable - Enable the plugin. Default value is false.
  • add_defer - Add a defer attribute to each script tag. Default value is false.
    • Set to true if the src of the script tag contains cdn.jsdelivr.net.
  • dest_list - Destination domain list. cdn.jsdelivr.net must be placed first.

License

Copyright (c) 2022 Pipecraft. Licensed under the MIT license.

>_

Pipecraft DTO BestXTools PZWD

Package Sidebar

Install

npm i hexo-filter-jsdelivr-auto-fallback

Weekly Downloads

10

Version

0.1.0

License

MIT

Unpacked Size

4.96 kB

Total Files

4

Last publish

Collaborators

  • pipecraft