We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.2.5
我在 https://github.com/XPoet/hexo-theme-keep/blob/master/scripts/helpers/helper.js 源码中看到,cdnjs枚举目前仅支持cloudflare。是否可以引入bootCDN、360CDN等国内速度较快的厂商?
case providerEnum.cdnjs: urlPrefix = 'https://cdnjs.cloudflare.com/ajax/libs/hexo-theme-keep' if (tyle === 'js') { path = path.includes('.min.js') ? path : path.replace('.js', '.min.js') return `<script src="${urlPrefix}/${version}/${path}"></script>` } else { path = path.includes('.min.css') ? path : path.replace('.css', '.min.css') return `<link rel="stylesheet" href="${urlPrefix}/${version}/${path}">` }
也就是说urlPrefix支持自定义,比如这样?
urlPrefix = 'https://cdn.bootcdn.net/ajax/libs/hexo-theme-keep'
具体的配置key是否可以在cdn.provider.cdnjs.custom下?
cdn.provider.cdnjs.custom
No response
The text was updated successfully, but these errors were encountered:
挺好的建议,后续会支持自定义cdn 厂商
Sorry, something went wrong.
感觉这个功能cdn.provider.cdnjs.custom 配置项更可靠,因为它不会影响上层配置。如果用 cdn.provider.custom,就可能引入不确定性。比如,如果上层指定的是 jsdelivr,而 custom 用的是 cdnjs,就可能导致无法访问的问题~
cdn.provider.custom
No branches or pull requests
Issue Checklist | Issue 检查清单
4.2.5
or later. (使用 Keep4.2.5
或更高版本)Feature Request | 功能需求
我在 https://github.com/XPoet/hexo-theme-keep/blob/master/scripts/helpers/helper.js 源码中看到,cdnjs枚举目前仅支持cloudflare。是否可以引入bootCDN、360CDN等国内速度较快的厂商?
也就是说urlPrefix支持自定义,比如这样?
具体的配置key是否可以在
cdn.provider.cdnjs.custom
下?Other Information | 其它信息
No response
The text was updated successfully, but these errors were encountered: