一、配置pua
09.hexo pwa安装实现文章更新通知_哔哩哔哩_bilibili1:51
butterfly 重装日记 | 安知鱼 (anzhiy.cn)
npm install --global gulp-cli # 全局安装gulp命令集
npm install workbox-build gulp --save # 安装workbox和gulp插件
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
这是一个npm审核警告,告诉你你的项目中有一些安全问题需要解决。该警告提供了两种解决方案:
使用 npm audit fix 解决不需要关注的问题。
使用 npm audit fix --force 解决所有可能的问题(包括破坏性更改)。
有些问题需要审查,并可能需要选择不同的依赖项。 运行 npm audit 以获取详细信息。
1.2问题一
修改[Blogroot]\themes\butterfly\layout\includes\additional-js.pug,在文件底部添加以下内容,注意缩进。butterfly_v3.6.0取消了缓存配置,转为完全默认,需要将{cache:theme.fragment_cache}改为{cache: true}:
if theme.pjax.enable
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
!=partial('includes/third-party/baidu_push', {}, {cache:theme.fragment_cache})
+ if theme.pwa.enable
+ !=partial('includes/third-party/pwanotice', {}, {cache: true})
$ gulp压缩文件
1.3github Repository not found 解决办法
git pull的时候遇到下面的报错。
1 2 | remote: Repository not found fatal: repository 'https://github.com/MyRepo/project.git/' not found |
解决办法如下,然后再执行git pull就会让你输入账号密码。就可以正常使用啦。
1 2 3 | $ git credential-manager uninstall
$ git credential-manager install |
1.4意识流
设置自定义css
4731

被折叠的 条评论
为什么被折叠?



