-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
hexo g rendered my javascript file wrongly #2675
Comments
Add
|
Hexo normally doesn't minimize the js/css files. Does @sunjiayu12 solution solve the problem? |
@NoahDragon @sunjiayu12 Nope. I've tried this way. Also sometimes |
I met the same problem about this .QAQ And @sunjiayu12 's solution seems doesn't work = =. Is there any solution to this problem??? |
I found a detailed issue about how to use |
I think if no neat/minify plugin was installed hexo should do nothing with javascript file but it did to my file and behave wrongly. Hexo itself says it only render html/md files so js file doesn't need to add to skip_render. |
This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Environment Info
Node version(
node -v
):Your site
_config.yml
(Optional):Your theme
_config.yml
(Optional):Too long and seems no relation.
Hexo and Plugin version(
npm ls --depth 0
):For BUG
Hello everyone here, I wrote a HTML5 canvas game use javascript snake.js. And want to add it into my site's about page with
(Already works in another site with raw HTML, not hexo rendered.)
However this never worked, all I got is an error. As I see the js file I find something strange.
This is the output of
diff ./source/about/snake.js ./public/about/snake.js
afterhexo g
:You can see that many lines was rendered into one line with wrong words.
I think that hexo only renders Markdown and HTML files in my environment, not js files, so I think there may be bugs that let it handle my js wrongly?
Thanks for everyone who give advice in advance.
For question
Nope.
For feature request
Nope.
The text was updated successfully, but these errors were encountered: