hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.53k stars 4.86k forks source link

How to run multiple renderer in sequence #4739

Open mahnunchik opened 3 years ago

mahnunchik commented 3 years ago

Check List

Please check followings before submitting a new issue.

Question

How to run multiple renderer in sequence?

For example hexo-renderer-dartsass to compile .scss to .css and then hexo-renderer-postcss2 to process .css by autoprefixer and other plugins.

Current behaviour: only hexo-renderer-dartsass is applied.

Environment & Settings

Node.js & npm version

hexo v5.0.0
node v14.17.3
github-actions[bot] commented 3 years ago

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.

mahnunchik commented 3 years ago

Hexo is dead?

mahnunchik commented 2 years ago

Ping

SukkaW commented 2 years ago

Currently, it is impossible to run multiple renderers in sequence. Only one renderer can be applied to a type of file at the time.

stevenjoezhang commented 1 year ago

You can use after_render:css filter, or find out css files like this: https://github.com/next-theme/hexo-optimize/blob/53c7f19b9df3812dee6ffabbb534c0f92089b315/lib/filter.js#L73