Closed Nearsc closed 7 years ago
@Nearsc
It will probably be conflict it . When you command hexo g
, js/src
in hexo-theme-next is copied to the root (public/js/src
).
So I think that source\js\sudoku.js
and hexo-theme-next/source/js/src
conflict. It would be better to change a different directory name (e.g. source\js\sudoku.js
to source\sample-code-js\sudoku.js
) or put sudoku.js
in the theme.
In my case, I put it in the theme.
@tea3
It does work. Thanks for your suggestion!
@Nearsc You're welcome : ) if you have no problem please close this issue .
Environment Info
Node version(
node -v
):Your site
_config.yml
(Optional):Your theme
_config.yml
(Optional):Hexo and Plugin version(
npm ls --depth 0
):For BUG
In the root directory of my website, my stuff are put in the directory
source
, and I have a JavaScript file assource\js\sudoku.js
. When I generate the website with command 'hexo g', everything works well but thesudoku.js
hasn't been copied completely. Some information is showed below. public\js\sudoku.js source\js\sudoku.js Log withhexo g --debug
I have to copy the file
sudoku.js
manually again to prevent this situation. But this process may become inconvenience in the future. I hope the duplication could be complete when executehexo g
.