Closed ferrarimarco closed 8 years ago
Huh, I hadn't actually thought of that. Thanks, I'll figure something out for this. Not sure what it'd be though, I'd like for the folder to be in a state where you could upload it without having to run --prod
on it as well or having to do gulp build
, but I'm not sure there's a good way to do that yet. I'll take a look once I'm done with my exams.
It could be done by a watch task that on all the .tmp subdirectories (see #127) used to serve content. I'll try to refine my current approach this way and let you know.
After completing the work on #127, I can send another PR for this.
When running the
default
task, gulp runs alsoassets:copy
.Is this useful?
After any edit to Jekyll contents, the
dist/assets
directory disappears as it's overwritten by Jekyll. This could lead to an inconsistent, undocumented state. If a dev assumes that the contents of thedist
directory always represent the finalized build, he/she could deploy an incomplete artifact with the 'dist/assets' directory missing.I run the
assets:copy
task only with thebuild
one, when I know that I am building the final package.Any thoughts on this? Thanks
EDIT: this could be expanded avoiding the
dist
directory altogether unless runninggulp build
.