Security researcher and full stack web developer from China.
as you can see.
backend
- java(springXXXX)
- dotnet (abp)
- php(laravel xxx)
frontend
- react
- vue
- typescript
misc c++ / rust etc...
auto Minify html、js、css and make it neat
Error: /Users/pr0ph3t/Desktop/blog/hexo/themes/spfk/layout/post.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
/Users/pr0ph3t/Desktop/blog/hexo/themes/spfk/layout/_partial/article.ejs:103
101| </div>
102| <% if (!index){ %>
>> 103| <%- partial('post/nav') %>
104| <% } %>
105| </article>
106| <% if (!index && post.toc != false && !is_page()){ %>
Parse Error: <</strong>
<div class="article-nav-title">
[hitcon2017] SSRF Me复现
</div>
</a>
<a href="/2017/12/23/2017-X-NUCA-总决赛小结/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">[2017 X-NUCA]总决赛小结</div>
<strong class="article-nav-caption">></strong>
</a>
</nav>
at new HTMLParser (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/html-minifier/src/htmlparser.js:236:13)
at minify (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/html-minifier/src/htmlminifier.js:945:3)
at exports.minify (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/html-minifier/src/htmlminifier.js:1294:10)
at Hexo.logic_html (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo-neat/lib/filter.js:28:18)
at Filter.execSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/extend/filter.js:74:28)
at Hexo.execFilterSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/hexo/index.js:432:29)
at Theme._View.View._compiledSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:120:18)
at Theme._View.View.View.renderSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:48:23)
at Object.partial (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
at eval (eval at compile (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/ejs/lib/ejs.js:633:12), <anonymous>:155:17)
at returnedFn (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/ejs/lib/ejs.js:668:17)
at Theme._View.View._compiledSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:119:22)
at Theme._View.View.View.renderSync (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:48:23)
at Object.partial (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
at eval (eval at compile (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/ejs/lib/ejs.js:633:12), <anonymous>:9:17)
at returnedFn (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/ejs/lib/ejs.js:668:17)
at Theme._View.View._compiled (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:123:48)
at Theme._View.View.View.render (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/hexo/index.js:349:21
at tryCatcher (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/bluebird/js/release/util.js:16:23)
at /Users/pr0ph3t/Desktop/blog/hexo/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/Users/pr0ph3t/Desktop/blog/hexo/node_modules/hexo/lib/hexo/router.js:123:3)
ERROR /Users/pr0ph3t/Desktop/blog/hexo/themes/spfk/layout/post.ejs:1
>> 1| <%- partial('_partial/article', {post: page, index: false}) %>
/Users/pr0ph3t/Desktop/blog/hexo/themes/spfk/layout/_partial/article.ejs:103
101| </div>
102| <% if (!index){ %>
>> 103| <%- partial('post/nav') %>
104| <% } %>
105| </article>
106| <% if (!index && post.toc != false && !is_page()){ %>
Parse Error: <</strong>
<div class="article-nav-title">
[hitcon2017] Sql-so-hard 复现
</div>
</a>
<a href="/2017/11/27/hitcon2017-BabyFirst-Revenge-V2复现/" id="article-nav-older" class="article-nav-link-wrap">
<div class="article-nav-title">[hitcon2017] BabyFirst Revenge V2复现</div>
<strong class="article-nav-caption">></strong>
</a>
</nav>
对部分js代码压缩会导致这部分js代码功能不正常。
当关闭neat_js选项压缩时则可以正常工作,我尝试用exclude选项跳过该文件 但是无法跳过 依旧时会出现问题。
</0?-1:1,e.fillrect(i.x-0.5,i.y-0.5,1,1);for(v=0;v<w.length;v++){x=w[v];if(i!==x&&null!==x.x&&null!==x.y){b=i.x-x.x,z=i.y-x.y,y=b*b+z*z;y<x.max&&(x===f&&y></0?-1:1,i.ya*=i.y>
第一次提Issues,如果需要更多信息,我再补充
附上插件列表
"hexo": "^3.2.0", "hexo-deployer-git": "^0.3.1", "hexo-generator-archive": "^0.1.4", "hexo-generator-baidu-sitemap": "^0.1.2", "hexo-generator-category": "^0.1.3", "hexo-generator-feed": "^1.2.2", "hexo-generator-index": "^0.2.0", "hexo-generator-searchdb": "^1.0.8", "hexo-generator-sitemap": "^1.2.0", "hexo-generator-tag": "^0.2.0", "hexo-neat": "^1.0.4", "hexo-renderer-ejs": "^0.3.0", "hexo-renderer-marked": "^0.3.0", "hexo-renderer-stylus": "^0.3.1", "hexo-server": "^0.2.0", "hexo-symbols-count-time": "^0.4.4"
我相信你想说的是谢谢这些家伙们
I believe that you intend to say 'Say Very Thanks for this guys:', rather than 'gays'.
问题描述:
根据README中所述和以下代码,hexo.config.neat_js是一个含有很多参数的配置对象。
https://github.com/rozbo/hexo-neat/blob/f5586579fd49d84d94e3653ef7095568484567de/index.js#L29-L36
这个对象会被直接传给UglifyJS.minify
函数。
https://github.com/rozbo/hexo-neat/blob/f5586579fd49d84d94e3653ef7095568484567de/lib/filter.js#L69-L70
https://github.com/rozbo/hexo-neat/blob/f5586579fd49d84d94e3653ef7095568484567de/lib/filter.js#L84
然而,其中的一些参数,例如enabled
、logger
等,uglify-js是不认识的。并且在当前版本(uglify-js v3.10.4)中,uglify-js会对它不认识的参数直接报错,拒绝进行处理,如同下图所示。
因此在当前版本下,任何minify-js操作都无法进行,因为options中至少会含有enable: true
。
问题版本:
本人将很快提交一个PR尝试修复此问题。
非常感谢!
null
I found you have released the 1.0.5 version in last month, but I cannot search the latest hexo-neat by npm:
$ npm view hexo-neat versions
[ '1.0.0', '1.0.1', '1.0.2', '1.0.3', '1.0.4' ]
Can you publish the latest version in npm?
Thx very much!!@rozbo
The neat plugin failed to render HTML with the Pug theme in Butterfly when rendering articles with pictures
The error is as follows:
ERROR Render HTML failed: 2020/如何白嫖免费域名/index.html Error: Parse Error: <img src= data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= data-src="https://cdn.slblog.ga/pic/post/qwq.png"><br>在方框里输入你想要的域名(带后缀哦)<br> 后缀类型:.tk,.ml,.ga,.gq,.cf<br>这边用dodola.ml举例子<br><img scr="https://cdn.slblog.ga/pic/post/pwp+.png"><br>点击完成,稍等一会儿他就会跳转至下一步<br>网站加载可能稍慢<br>接着点击<br><img src= data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= data-src="https://cdn.slblog.ga/pic/post/sss.png"><br>将3 Months @ FREE改为12 Months @ FREE<br>PS:Use Dns代表自定义DNS<br>Forward this domain代表将域名跳转至某域名<br>当这一步做好后点击Continue<br>接下来会跳转至<br><img src= data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= data-src="https://cdn.slblog.ga/pic/post/rrrr.png"><br>在Enter Your Email Address填写你的域名<br>然后点击 Verify My Email Address<br>这时候Freenom将会给你发一封邮件<br>在邮件内部找到Verify My Email Address<br>点击一下,就会跳转至一个页面,下面让你填写真实信息,推荐和自己IP一样,否则可能结算报错。<br>填写 好后将下面的小方块打上勾,点击下一步(应该是的)<br>然后跳转至一个页面,看看上面有没有Error之类的报 错,如果没有,恭喜你,注册成功!<br>下面是修改DNS教程<br>打开<a href="https://my.freenom.com/clientarea.php?action=domains" target="_blank" rel="noopener">https://my.freenom.com/clientarea.php?action=domains</a><br>找到你刚才嫖的域名点击后面的Manage Domain<br>然后找到Management Tools-Nameserver<br>选择Use custom nameservers(enter below)<br>将下面的Nameserver改成你想用的DNS<br>这时候一年 的域名就白嫖完成啦~<br>续费也是免费的哦!</p><p>PS:白嫖的域名现在无法使用CF啦(无法解析!)</p><!-- rebuild by neat --></div><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="mailto:undefined">失踪的SuperのLove</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://www.slblog.ga/2020/%E5%A6%82%E4%BD%95%E7%99%BD%E5%AB%96%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D/index.html">https://www.slblog.ga/2020/%E5%A6%82%E4%BD%95%E7%99%BD%E5%AB%96%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D/index.html</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声 明: </span><span class="post-copyright-info">本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请 注明来自 <a href="https://www.slblog.ga" target="_blank">SuperのLove's blog</a>!</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/%E7%99%BD%E5%AB%96%E5%85%9A%E7%A6%8F%E5%88%A9/">白嫖党福利</a></div><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="post_share"><div class="social-share" data-image="/images/th.png" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js"></script></div><!-- rebuild by neat --></div><nav class="pagination_post" id="pagination"><div class="prev-post pull_left"><a href="/2020/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/index.html"><img class="prev_cover" data-src="/images/th.png" onerror="onerror=null;src='/img/404.jpg'"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">博客注意事项</div></div></a></div><div class="next-post pull_right"><a href="/2020/%E8%87%B4%E6%95%AC%E4%B8%BA%E5%9B%A0%E5%89%8D%E7%BA%BF%E6%8A%97%E6%88%98%E7%97%85%E6%AF%92%E8%80%8C%E6%AD%BB%E4%BA%A1%E7%9A%84%E6%88%98%E5%A3%AB%E4%BB%AC%E3%80%82/index.html"><img class="next_cover" data-src="/images/th.png" onerror="onerror=null;src='/img/404.jpg'"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">致敬为因前线抗战 病毒而死亡的战士们。</div></div></a></div></nav><hr><div id="post-comment"><div class="comment_headling"><i class="fa fa-comments fa-fw" aria-hidden="true"></i><span> 评论</span></div><div id="lv-container" data-id="city" data-uid="MTAyMC80ODgxNS8yNTMwOQ=="><script>(function(d, s) { var j, e = d.getElementsByTagName(s)[0]; if (typeof LivereTower === 'function') { return; } j = d.createElement(s); j.src = 'https://cdn-city.livere.com/js/embed.dist.js'; j.async = true; e.parentNode.insertBefore(j, e); })(document, 'script');</script></div></div></article></main><footer id="footer" data-type="color"><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div id="footer-wrap"><div class="copyright">©2020 By 失踪的SuperのLove</div><div class="framework-info"></div></div><center><img src="https://cdn.jsdelivr.net/gh/Open-super/ImgHosting//SuperImg/moeicp.png" style="width:18px;height:18px;margin-bottom:-3px" alt="MOE ICP"><a href="https://icp.gov.moe" target="_blank">萌ICP备 </a><a href="https://icp.gov.moe/?keyword=20205150" target="_blank">20205150号</a></center><center><img src="https://badgen.net/badge/Hosting%20By%20/Coding/green?icon=appveyor"><img src="https://badgen.net/badge/Files%20CDN%20By%20/%20Fast.io&Zeit%20/green?icon=dockbit"><img src="https://badgen.net/badge/%E4%BD%BF%E7%94%A8%E7%B3%BB%E7%BB%9F/Hexo/green?icon=terminal"><img src="https://badgen.net/badge/JS&CSS%20CDN%20By/jsdelivrCDN/green?icon=jsdelivr"><img src="https://badgen.net/badge/DNS/DNS.la/green?icon=appveyor"></center><div class="icp"><a><img class="icp-icon" src="/img/icp.png"><span>备案?不阔能滴!</span></a></div><!-- rebuild by neat --></footer></div><section class="rightside" id="rightside"><div id="rightside-config-hide"><i class="fa fa-book" id="readmode" title="阅读模式"></i><i class="fa fa-plus" id="font_plus" title="放大字体"></i><i class="fa fa-minus" id="font_minus" title="缩小字体"></i><a class="translate_chn_to_cht" id="translateLink" href="javascript:translatePage();" title="简繁转换" target="_self">繁</a><i class="darkmode fa fa-moon-o" id="darkmode" title="夜间模式"></i></div><div id="rightside-config-show"><div id="rightside_config" title="设置"><i class="fa fa-cog" aria-hidden="true"></i></div><a id="to_comment" href="#post-comment" title="直达评论"><i class="scroll_to_comment fa fa-comments"> </i></a><i class="fa fa-arrow-up" id="go-up" title="回到顶部" aria-hidden="true"></i></div></section><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a href="https://github.com/wzpan/hexo-generator-search" target="_blank" rel="noopener" style="color:#49B1F5">hexo-generator-search</a> <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div><!-- rebuild by neat --><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script id="ribbon_piao" mobile="false" src="/js/third-party/piao.js"></script><script src="/js/third-party/activate-power-mode.js"></script><script>POWERMODE.colorful = true; POWERMODE.shake = true; document.body.addEventListener('input', POWERMODE); </script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@latest/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script><script src="/js/third-party/click_heart.js"></script><script src="/js/search/local-search.js"></script><script src="xx/xx.js"></script><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><script>var endLoading=function(){document.body.style.overflow="auto",document.getElementById("loading-box").classList.add("loaded")};window.addEventListener("load",endLoading)</script><!-- rebuild by neat --> <script src="//cdn.jsdelivr.net/npm/js-base64/base64.min.js"></script> <script> $('a').each(function() { const $this = $(this); const href = $this.attr('href'); if (href && href.match('^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)')) { const strs = href.split('/'); if (strs.length >= 3) { const host = strs[2]; if (host !== '' || window.location.host) { $this.attr('href', '/go.html?u='+Base64.encode(href)+'').attr('rel', 'external nofollow noopener noreferrer'); if (true) { $this.attr('target', '_blank'); } } } } }); </script></body></html> at new HTMLParser (D:\Hexo\node_modules\html-minifier\src\htmlparser.js:236:13) at minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:945:3) at exports.minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:1294:10) at Hexo.logic_html (D:\Hexo\node_modules\hexo-neat\lib\filter.js:28:18) at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34) at D:\Hexo\node_modules\hexo\lib\extend\filter.js:62:52 at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18) at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25) at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (D:\Hexo\node_modules\bluebird\js\release\async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (D:\Hexo\node_modules\bluebird\js\release\async.js:15:14) at processImmediate (internal/timers.js:456:21) FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Parse Error: <img class="avatar-img" src= data:image/gif;base64,R0lGODdhAQABAPAAAMPDwwAAACwAAAAAAQABAAACAkQBADs= data-src="https://cdn.slblog.ga/pic/logo.png" onerror="onerror=null,src="/img/friend_404.gif"" alt="avatar"></div><div class="mobile_post_data"><div class="mobile_data_item is-center"><div class="mobile_data_link"><a href="/archives/"><div class="headline">文章</div><div class="length_num">6</div></a></div></div><div class="mobile_data_item is-center"><div class="mobile_data_link"><a href="/tags/"><div class="headline">标签</div><div class="length_num">3</div></a></div></div></div><hr><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 文章</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分页</span></a></div><div class="menus_item"><a class="site-page" href="/ncov/"><i class="fa-fw fa fa-vine"></i><span> 疫情情况</span></a></div></div></div></div><nav class="error-no-found" id="nav" style="background-image:url(https://bing.ioliu.cn/v1/blur?w=1920,h=1080)"><div id="page-header"><span class="pull_left" id="blog_name"><a class="blog_title" id="site-name" href="/">SuperのLove's blog</a></span><span class="pull_right menus"><div id="search_button"><a class="site-page social-icon search"><i class="fa fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fa fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fa fa-archive"></i><span> 文章</span></a></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fa fa-link"></i><span> 友链</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fa fa-heart"></i><span> 关于</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fa fa-folder-open"></i><span> 分页</span></a></div><div class="menus_item"><a class="site-page" href="/ncov/"><i class="fa-fw fa fa-vine"></i><span> 疫情情况</span></a></div></div><span class="toggle-menu close"><a class="site-page"><i class="fa fa-bars fa-fw" aria-hidden="true"></i></a></span></span></div><div class="is-center" id="error_info"><h1 id="error_title">404</h1><div id="error_subtitle">页面没有找到</div></div></nav><section class="rightside" id="rightside"><div id="rightside-config-hide"><a class="translate_chn_to_cht" id="translateLink" href="javascript:translatePage();" title="简繁转换" target="_self">繁</a><i class="darkmode fa fa-moon-o" id="darkmode" title="夜间模式"></i></div><div id="rightside-config-show"><div id="rightside_config" title="设置"><i class="fa fa-cog" aria-hidden="true"></i></div><i class="fa fa-arrow-up" id="go-up" title="回到顶部" aria-hidden="true"></i></div></section><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a href="https://github.com/wzpan/hexo-generator-search" target="_blank" rel="noopener" style="color:#49B1F5">hexo-generator-search</a> <span> 提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script id="ribbon_piao" mobile="false" src="/js/third-party/piao.js"></script><script src="/js/third-party/activate-power-mode.js"></script><script>POWERMODE.colorful=!0,POWERMODE.shake=!0,document.body.addEventListener("input",POWERMODE)</script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@latest/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script><script src="/js/third-party/click_heart.js"></script><script src="/js/search/local-search.js"></script><script src="/la.js"></script><script>var endLoading=function(){document.body.style.overflow="auto",document.getElementById("loading-box").classList.add("loaded")};window.addEventListener("load",endLoading)</script><script src="//cdn.jsdelivr.net/npm/js-base64/base64.min.js"></script><script>$("a").each(function(){const t=$(this),e=t.attr("href");if(e&&e.match("^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)")){const o=e.split("/");if(o.length>=3){const r=o[2];("www.slblog.ga"!==r||window.location.host)&&(t.attr("href","/go.html?u="+Base64.encode(e)).attr("rel","external nofollow noopener noreferrer"),t.attr("target","_blank"))}}})</script><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({pluginRootPath:"live2dw/",pluginJsPath:"lib/",pluginModelPath:"assets/",tagMode:!1,log:!1,model:{jsonPath:"/live2dw/assets/wanko.model.json"},display:{position:"right",width:150,height:300},mobile:{show:!1},react:{opacity:1}})</script><script src="//cdn.jsdelivr.net/npm/js-base64/base64.min.js"></script><script>$("a").each(function(){const t=$(this),e=t.attr("href");if(e&&e.match("^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)")){const r=e.split("/");if(r.length>=3){const o=r[2];(""!==o||window.location.host)&&(t.attr("href","/go.html?u="+Base64.encode(e)).attr("rel","external nofollow noopener noreferrer"),t.attr("target","_blank"))}}})</script><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({pluginRootPath:"live2dw/",pluginJsPath:"lib/",pluginModelPath:"assets/",tagMode:!1,log:!1,model:{jsonPath:"/live2dw/assets/wanko.model.json"},display:{position:"right",width:150,height:300},mobile:{show:!1},react:{opacity:1}})</script></body></html><!-- rebuild by neat --></div><hr><div id="post-comment"><div class="comment_headling"><i class="fa fa-comments fa-fw" aria-hidden="true"></i><span> 评论</span></div><div id="lv-container" data-id="city" data-uid="MTAyMC80ODgxNS8yNTMwOQ=="><script>(function(d, s) { var j, e = d.getElementsByTagName(s)[0]; if (typeof LivereTower === 'function') { return; } j = d.createElement(s); j.src = 'https://cdn-city.livere.com/js/embed.dist.js'; j.async = true; e.parentNode.insertBefore(j, e); })(document, 'script');</script></div></div></div><div class="aside_content" id="aside_content"><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-info"><div class="card-content"><div class="card-info-avatar is-center"><img class="avatar-img" src="https://cdn.slblog.ga/pic/logo.png" onerror='this.onerror=null,this.src="/img/friend_404.gif"' alt="avatar"><div class="author-info__name">失踪的SuperのLove</div><div class="author-info__description">一个B站UP主的博客</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives"><div class="headline">文章</div><div class="length_num">6</div></a></div><div class="card-info-data-item is-center"><a href="/tags"><div class="headline">标签</div><div class="length_num">3</div></a></div></div><div class="card-info-bookmark is-center"><a class="bookmark button--primary button--animated" id="bookmark-it" href="javascript:;" title="加入书签" target="_self"><i class="fa fa-bookmark" aria-hidden="true"></i><span>加入书签</span></a></div><div class="card-info-social-icons is-center"><a class="social-icon" href="https://github.com/Open-super" target="_blank" title="Github"><i class="fa fa-github" aria-hidden="true"></i></a><a class="social-icon" href="mailto:[email protected]" target="_blank" title="Email"><i class="fa fa-envelope" aria-hidden="true"></i></a><a class="social-icon" href="/atom.xml" target="_blank" title="RSS"><i class="fa fa-rss" aria-hidden="true"></i></a><a class="social-icon" href="https://coding.net/" target="_blank" title="Coding Pages"><i class="fa fa-cloud" aria-hidden="true"></i></a></div></div></div><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-announcement"><div class="card-content"><div class="item-headline"><i class="fa fa-bullhorn card-announcement-animation" aria-hidden="true"></i><span>公告</span></div><div class="announcement_content">本次大改切换了渲染器为PUG、切换了主题为Butterfly</div></div></div><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-recent-post"><div class="card-content"><div class="item-headline"><i class="fa fa-history" aria-hidden="true"></i><span>最新文章</span></div><div class="aside-recent-item"><div class="aside-recent-post"><a href="/2020/%E5%A6%82%E4%BD%95%E5%9C%A8%E8%87%AA%E5%B7%B1%E7%BD%91%E7%AB%99%E4%B8%8A%E6%B7%BB%E5%8A%A0pace-js%E8%BF%9B%E5%BA%A6%E6%9D%A1/index.html"><div class="aside-post-cover"><img class="aside-post-bg" data-src="/images/th.png" onerror='this.onerror=null,this.src="/img/404.jpg"' title="如何在自己网站上添加pace.js进度条" alt="如何在自己网站上添加pace.js进度条"></div><div class="aside-post-title"><div class="aside-post_title" href="/2020/%E5%A6%82%E4%BD%95%E5%9C%A8%E8%87%AA%E5%B7%B1%E7%BD%91%E7%AB%99%E4%B8%8A%E6%B7%BB%E5%8A%A0pace-js%E8%BF%9B%E5%BA%A6%E6%9D%A1/index.html" title="如何在自己网站上添加pace.js进度 条">如何在自己网站上添加pace.js进度条</div><time class="aside-post_meta post-meta__date" title=" 发表于 2020-05-16 14:07:44">2020-05-16</time></div></a></div><div class="aside-recent-post"><a href="/2020/%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84Office-E5/index.html"><div class="aside-post-cover"><img class="aside-post-bg" data-src="/images/th.png" onerror='this.onerror=null,this.src="/img/404.jpg"' title="如何创建自己的Office E5" alt="如何创建自己的Office E5"></div><div class="aside-post-title"><div class="aside-post_title" href="/2020/%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%9A%84Office-E5/index.html" title="如何创建自己的Office E5">如何创建自己的Office E5</div><time class="aside-post_meta post-meta__date" title="发表于 2020-05-14 17:38:44">2020-05-14</time></div></a></div><div class="aside-recent-post"><a href="/2020/%E5%AF%B9%E9%83%A8%E5%88%86%E6%97%B6%E5%80%99%E5%8D%9A%E5%AE%A2%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80%E7%9A%84%E9%97%AE%E9%A2%98%E8%BF%9B%E8%A1%8C%E8%A7%A3%E7%AD%94/index.html"><div class="aside-post-cover"><img class="aside-post-bg" data-src="/images/th.png" onerror='this.onerror=null,this.src="/img/404.jpg"' title="对部分时候博客无法打开的问题进行解答" alt="对部分时候博客无法打开的问题进 行解答"></div><div class="aside-post-title"><div class="aside-post_title" href="/2020/%E5%AF%B9%E9%83%A8%E5%88%86%E6%97%B6%E5%80%99%E5%8D%9A%E5%AE%A2%E6%97%A0%E6%B3%95%E6%89%93%E5%BC%80%E7%9A%84%E9%97%AE%E9%A2%98%E8%BF%9B%E8%A1%8C%E8%A7%A3%E7%AD%94/index.html" title="对部分时候博客无法打开 的问题进行解答">对部分时候博客无法打开的问题进行解答</div><time class="aside-post_meta post-meta__date" title="发表于 2020-05-12 13:55:43">2020-05-12</time></div></a></div><div class="aside-recent-post"><a href="/2020/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/index.html"><div class="aside-post-cover"><img class="aside-post-bg" data-src="/images/th.png" onerror='this.onerror=null,this.src="/img/404.jpg"' title="博客注意事项" alt="博客注意事项"></div><div class="aside-post-title"><div class="aside-post_title" href="/2020/%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9/index.html" title="博客注 意事项">博客注意事项</div><time class="aside-post_meta post-meta__date" title="发表于 2020-05-03 21:53:00">2020-05-03</time></div></a></div><div class="aside-recent-post"><a href="/2020/%E5%A6%82%E4%BD%95%E7%99%BD%E5%AB%96%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D/index.html"><div class="aside-post-cover"><img class="aside-post-bg" data-src="/images/th.png" onerror='this.onerror=null,this.src="/img/404.jpg"' title="如何白嫖免费域名" alt="如何白嫖免费域名"></div><div class="aside-post-title"><div class="aside-post_title" href="/2020/%E5%A6%82%E4%BD%95%E7%99%BD%E5%AB%96%E5%85%8D%E8%B4%B9%E5%9F%9F%E5%90%8D/index.html" title="如何白嫖免费域名">如何白嫖免费域名</div><time class="aside-post_meta post-meta__date" title="发表于 2020-05-01 09:28:38">2020-05-01</time></div></a></div></div></div></div><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-tags"><div class="card-content"><div class="item-headline"><i class="fa fa-tags" aria-hidden="true"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/%E6%B3%A8%E6%84%8F%EF%BC%81/" style="font-size:20px;color:#2b40b8">注意!</a><a href="/tags/%E7%99%BD%E5%AB%96%E5%85%9A%E7%A6%8F%E5%88%A9/" style="font-size:21px;color:#8a888f">白嫖党福 利</a><a href="/tags/%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94/" style="font-size:19px;color:#622b82">问题解答</a></div></div></div><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-archives"><div class="card-content"><div class="item-headline"><i class="fa fa-archive" aria-hidden="true"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/05/"><span class="card-archive-list-date">五月 2020</span><span class="card-archive-list-count">5</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2020/04/"><span class="card-archive-list-date">四月 2020</span><span class="card-archive-list-count">1</span></a></li></ul></div></div><!-- rebuild by neat --><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="card-widget card-webinfo"><div class="card-content"><div class="item-headline"><i class="fa fa-line-chart" aria-hidden="true"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="webinfo-article-name">文章数目 :</div><div class="webinfo-article-count">6</div></div><div class="webinfo-item"><div class="webinfo-runtime-name">已运行时间 :</div><div class="webinfo-runtime-count" id="webinfo-runtime-count" start_date="13/12/2019 09:12:35"></div></div><div class="webinfo-item"><div class="webinfo-site-wordcount-name">本站总字数 :</div><div class="webinfo-site-wordcount">1.3k</div></div><div class="webinfo-item"><div class="webinfo-site-uv-name">本站访客数 :</div><div class="webinfo-site-uv-count" id="busuanzi_value_site_uv"></div></div><div class="webinfo-item"><div class="webinfo-site-name">本站总访问量 :</div><div class="webinfo-site-pv-count" id="busuanzi_value_site_pv"></div></div></div></div></div><!-- rebuild by neat --></div></main><footer id="footer" data-type="color"><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div id="footer-wrap"><div class="copyright">©2020 By 失踪的SuperのLove</div><div class="framework-info"></div></div><center><img src="https://cdn.jsdelivr.net/gh/Open-super/ImgHosting//SuperImg/moeicp.png" style="width:18px;height:18px;margin-bottom:-3px" alt="MOE ICP"><a href="https://icp.gov.moe" target="_blank">萌ICP备 </a><a href="https://icp.gov.moe/?keyword=20205150" target="_blank">20205150号</a></center><center><img src="https://badgen.net/badge/Hosting%20By%20/Coding/green?icon=appveyor"><img src="https://badgen.net/badge/Files%20CDN%20By%20/%20Fast.io&Zeit%20/green?icon=dockbit"><img src="https://badgen.net/badge/%E4%BD%BF%E7%94%A8%E7%B3%BB%E7%BB%9F/Hexo/green?icon=terminal"><img src="https://badgen.net/badge/JS&CSS%20CDN%20By/jsdelivrCDN/green?icon=jsdelivr"><img src="https://badgen.net/badge/DNS/DNS.la/green?icon=appveyor"></center><div class="icp"><a><img class="icp-icon" src="/img/icp.png"><span>备案?不阔能滴!</span></a></div><!-- rebuild by neat --></footer></div><section class="rightside" id="rightside"><div id="rightside-config-hide"><a class="translate_chn_to_cht" id="translateLink" href="javascript:translatePage();" title="简繁转换" target="_self">繁</a><i class="darkmode fa fa-moon-o" id="darkmode" title="夜间模式"></i></div><div id="rightside-config-show"><div id="rightside_config" title="设置"><i class="fa fa-cog" aria-hidden="true"></i></div><i class="fa fa-arrow-up" id="go-up" title="回到顶部" aria-hidden="true"></i></div></section><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a href="https://github.com/wzpan/hexo-generator-search" target="_blank" rel="noopener" style="color:#49B1F5">hexo-generator-search</a> <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div><!-- rebuild by neat --><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script id="ribbon_piao" mobile="false" src="/js/third-party/piao.js"></script><script src="/js/third-party/activate-power-mode.js"></script><script>POWERMODE.colorful = true; POWERMODE.shake = true; document.body.addEventListener('input', POWERMODE); </script><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><script src="https://cdn.jsdelivr.net/npm/instant.page@latest/instantpage.min.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script><script src="/js/third-party/click_heart.js"></script><script src="/js/search/local-search.js"></script><script src="xx/xx.js"></script><!-- build time:Mon May 25 2020 15:28:42 GMT+0800 (GMT+08:00) --><script>var endLoading=function(){document.body.style.overflow="auto",document.getElementById("loading-box").classList.add("loaded")};window.addEventListener("load",endLoading)</script><!-- rebuild by neat --> <script src="//cdn.jsdelivr.net/npm/js-base64/base64.min.js"></script> <script> $('a').each(function() { const $this = $(this); const href = $this.attr('href'); if (href && href.match('^((http|https|thunder|qqdl|ed2k|Flashget|qbrowser|ftp|rtsp|mms)://)')) { const strs = href.split('/'); if (strs.length >= 3) { const host = strs[2]; if (host !== '' || window.location.host) { $this.attr('href', '/go.html?u='+Base64.encode(href)+'').attr('rel', 'external nofollow noopener noreferrer'); if (true) { $this.attr('target', '_blank'); } } } } }); </script></body></html> at new HTMLParser (D:\Hexo\node_modules\html-minifier\src\htmlparser.js:236:13) at minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:945:3) at exports.minify (D:\Hexo\node_modules\html-minifier\src\htmlminifier.js:1294:10) at Hexo.logic_html (D:\Hexo\node_modules\hexo-neat\lib\filter.js:28:18) at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34) at D:\Hexo\node_modules\hexo\lib\extend\filter.js:62:52 at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18) at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25) at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31) at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18) at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10) at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18) at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12) at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9) at Async._drainQueues (D:\Hexo\node_modules\bluebird\js\release\async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (D:\Hexo\node_modules\bluebird\js\release\async.js:15:14) at processImmediate (internal/timers.js:456:21)
rt, 编译出来的
<!-- build time:Thu Oct 12 2017 14:54:26 GMT+0800 (CST) --><!DOCTYPE html>
在 DOCTYPE
前有注释感觉比较奇怪, 当然可能我有强迫症哈~
Can't minify ES6 js code. This is a problem caused by uglify.
压缩ES6的js代码会报错。现已知uglify有该问题。
比如,下面一段代码就会引起报错:
let a=1;
neat_enable: true
neat_html:
enable: true
exclude:
- "**/dir/**"
- "**/+(dir1|dir2)/**"
When i wanna exclude some dir in hexo, i find it worked out with the doc of minimatch
.
Maybe help someone when use neat plugin.
Thks rozbo!
在1.0.9(当前最新版)中,css的d:path("")
压缩后会被删去,如:
/*压缩前*/
.icon-play path{d: path('M150 0 L75 200 L225 200 Z');right: 10px}
/*压缩后*/
.icon-play path{right:10px}
我使用的主题是NexT
在hexo generate的过程中会出现Asset render failed: lib/canvas-ribbon/canvas-ribbon.js
然后打开的效果是隐藏大量篇幅变成Read More按钮这一功能没了,我猜是markdown转html的时候出的问题
把对js和css的压缩功能关闭,Asset render failed就不再发生了,但是read more还是没有显示...
怎样排除 /tags/标签/
和按日期归档这类没多大必要压缩的页面 html 文件?真正有压缩必要的其实只有文章页、首页、/tags/、/archive/等常用页面。
感觉徒增 hexo g 的耗时,能忽略吗?
ERROR Asset render failed: lib/three/gulpfile.js
Error
at new JS_Parse_Error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1534:18)
at js_error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:1542:11)
at croak (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2089:9)
at token_error (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2097:9)
at unexpected (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2103:9)
at expr_atom (eval at <anonymous> (D:\hexover\node_modules\hexo-neat\node_modules\uglify-js\tools\node.js:28:1), <anonymous>:2618:13)
不知道是不是之前装过 GULP压缩的问题,另外页面中的动态背景也失效凉了
我看Hexo plugin里面hexo-all-minifier和这个功能基本一致,有什么特殊的不同么?
In current package.json clean-css
is required >4.2.3
, however the latest clean-css version is 4.2.3, install fails for the reason that no version satisfied >4.2.3
specifier.
[2020-07-09 12:04:31] npm ERR! code ETARGET
[2020-07-09 12:04:31] npm ERR! notarget No matching version found for clean-css@>4.2.3.
[2020-07-09 12:04:31] npm ERR! notarget In most cases you or one of your dependencies are requesting
[2020-07-09 12:04:31] npm ERR! notarget a package version that doesn't exist.
[2020-07-09 12:04:31] npm ERR! notarget
[2020-07-09 12:04:31] npm ERR! notarget It was specified as a dependency of 'hexo-neat'
[2020-07-09 12:04:31] npm ERR! notarget
This should be fixed to >=4.2.3
or ~4.2.3
仅对于要生成的文件进行压缩
hexo g对于未修改的文件不会重复生成
对于对于现有的形式,在git提交过程中,基本上相当于所有文件重写。这样的变更量太大,对于git来讲并不适。
如果仅仅是删除空行,这样就不至于造成文件重写,每次git同步的变化量也要小很多。
ERROR Asset render failed: lib/canvas-ribbon/canvas-ribbon.js
求请教
hexo: 3.8.0
theme next: 7.1.0
大佬,我可以厚颜无耻地提个性能方面的issue吗?
是这样的,在使用hexo-neat进行压缩的时候,我需要花费至少三分钟的时间,如果不压缩的话只要几十秒就可以了。
我看hexo-neat在压缩页面时,分别压缩了html, swig, js, css, md等文件;这些花费了大量的时间,swig和md文件只是模板和初始文件而已,应该没有必要去压缩的吧,能不能改成只对生成后的html静态页面进行压缩呢?
因为我发现一旦使用了neat_html:
里的exclude
来排除掉md和swig文件,会导致最后的html是没有被压缩的,而且当md文件里使用到了next主题自带的tab标签,还会有语法错误导致压缩失败。。
I found config '*.min.js' cannot work. Should add prefix path like '**/'. It can work in my hexo-Next theme as follows:
neat_js:
enable: true
mangle: true
output:
compress:
exclude:
- '**/*.min.js'
这里面可以设置图片的压缩么?像Gulp那样,毕竟加载速度变慢跟这个也有关系。
在压缩html时希望只删除行尾空格和空行,而不是把所有换行都删除。同时删除开头自动添加的生成时间。
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "5.4.0"
},
"dependencies": {
"hexo": "^5.0.0",
"hexo-deployer-git": "^3.0.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-lazyload-image": "^1.0.10",
"hexo-neat": "^1.0.9",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^4.0.0",
"hexo-renderer-stylus": "^2.0.0",
"hexo-renderer-swig": "^1.1.0",
"hexo-server": "^2.0.0"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.