Closed davidbfrogman closed 8 years ago
running gulp watch cleans the dist and all the bundles with it. just run gulp watch and in another terminal run gulp bundle, refresh the page and see the result.
Sorry for the trouble you have gone through. We have included this in our documentation. Basically, Build -> Bundle -> Deploy is the workflow we tend to follow.
So I've spent the past 3 hours trying to figure out why I couldn't get gulp bundle to work properly.
After struggling with just executing the task, I finally got gulp bundle to run. And then I would try to see if it worked, I would get a 404 on aurelia.js.
The solution was hosting in IIS, and not using gulp watch to host my aurelia app. Then after I did gulp bundle, I could see my site without gulp watch.
I'm not sure what the solution would be here, but it was super frusterating at very least some better documentation around bundling would be awesome.
thanks!