-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gatsby build deletes all html files #2559
Comments
Oh, hmmm does this happen? The solution would be then to copy stuff from the static folder after we delete the HTML files in |
What about excluding |
👍 that'd work too |
I don't have time right now but I will create a PR asap. Thanks! |
Done: #2569 |
Unfortunately the fix didn't work as expected, it is still removing the files. Looking into the readme of "del" I saw: So, that was the cause why it didn't work before. I created a new PR that should fix it properly: Thanks! |
I works now! |
I have a bunch of examples in my blog, small index.html files with a bit of js.
I put them in a folder inside the
static
folder.If I run
gatsby develop
everything works well, but I soon as I rungatsby build
every html file is deleted because https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/index.js#L64And that's seems to be the correct behavior, so my question is: How you handle this situation?
I tried to use the
onPostBuild
function and that works ok withgatsby build
, but not withgatsby develop
, so I'm not entirely sure how to solve that.Any idea?
The text was updated successfully, but these errors were encountered: