Hexo: Question: How to exclude file from Hexo output

Created on 24 Apr 2020  路  2Comments  路  Source: hexojs/hexo

Question

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?

question

Most helpful comment

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

All 2 comments

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 馃檹馃徎

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scaljeri picture scaljeri  路  44Comments

icepy picture icepy  路  34Comments

SukkaW picture SukkaW  路  25Comments

201507 picture 201507  路  32Comments

tomap picture tomap  路  21Comments