tevio / jekyll-webpack

Once Jekyll has built your sites HTML, run webpack against the compiled _site
MIT License
5 stars 3 forks source link

only run in _site/ #4

Closed heeplr closed 3 years ago

heeplr commented 3 years ago

This should prevent webpack being run in subdirectories of _site/ and should solve issue #3 where 3rd party plugins run the post_write hook multiple times for different directories.

It works for me™ at the moment and probably shouldn't be merged without changes.

(I don't know anything about jekyll plugin development but I guess the "_site" shouldn't be hardcoded.)

tevio commented 3 years ago

hi @heeplr nice idea if it solves your problem which I'm sure is valid, I think we would want to make this optional/configurable since I believe as you say, the _site folder is not hardcoded so a user can output to a different folder than _site