Closed unicornt closed 7 years ago
and it still doesn't work...
Can you help me try to change it like this? And see if it works or not, thank you!
let baseDir = hexo.base_dir;
like this?
let baseDir = hexo.base_dir;
const pluginDir = path.join(
baseDir, 'node_modules', 'hexo-prism-plugin');
const themeDir = path.join(pluginDir, 'themes');
const libUri = path.join(pluginDir, 'prism.js');
// Process sub-directory
if (hexo.config.root && hexo.config.root !== '/')
baseDir += hexo.config.root;
Yes
If it works, please let me know, I'll update the codebase. If it still doesn't work, I'll try to figure it out.
there're no error. but still doesn't work
Fixed it. And I test it on my local machine, hope it works for you!
yes,it really works. thank you
it should be change to
when i run it,it have error
TypeError: Assignment to constant variable.