For example, I have a file - image1.jpg - in _posts folder. When I generate the website, to file copied as expected. Is there any way to exclude this file from copying to output directory?
The answer is yes. You can use the hexo.route.remove method. Here is an example
https://github.com/theme-next/hexo-theme-next/blob/master/scripts/filters/minify.js
@stevenjoezhang Brilliant, thank you 馃檹馃徎
Most helpful comment
The answer is yes. You can use the
hexo.route.removemethod. Here is an examplehttps://github.com/theme-next/hexo-theme-next/blob/master/scripts/filters/minify.js