aurelia / bundler

A library for bundling JavaScript, HTML and CSS for use with SystemJS.
MIT License
37 stars 25 forks source link

When creating a bundle and then using gulp watch your dist folder is cleaned out #40

Closed davidbfrogman closed 8 years ago

davidbfrogman commented 8 years ago

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!

genadis commented 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.

ahmedshuhel commented 8 years ago

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.