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

path is undefined #103

Open
KumaNNN opened this issue Jul 31, 2020 · 0 comments
Open

path is undefined #103

KumaNNN opened this issue Jul 31, 2020 · 0 comments

Comments

@KumaNNN
Copy link

KumaNNN commented Jul 31, 2020

test.md

{% note default %}
#### Default Header
Welcome to [Hexo!](https://hexo.io)
{% endnote %}

{% note primary %}
#### Primary Header
**Welcome** to [Hexo!](https://hexo.io)
{% endnote %}

note tag from Next

Return error

INFO  update Optimize HTML: undefined [ 1.10% saved]
INFO  update Optimize HTML: undefined [ 1.01% saved]

path is undefined

Debugger in hexo-all-minifier\lib\optimizeHTML.js

... ...
log[options.silent ? 'debug' : 'info']('update Optimize HTML: %s [ %s saved]', path, saved + '%');
if (path == undefined) console.log(data);
... ...

Debugging results

INFO  update Optimize HTML: undefined [ 1.10% saved]
{
  text: '\n#### Default Header\n\nWelcome to [Hexo!](https://hexo.io)',
  engine: 'markdown'
}
INFO  update Optimize HTML: undefined [ 1.01% saved]
{
  text: '\n#### Primary Header\n\n**Welcome** to [Hexo!](https://hexo.io)',
  engine: 'markdown'
}

Why is it treated as a file?

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

No branches or pull requests

1 participant