Swiip / generator-gulp-angular

Yeoman generator for AngularJS with GulpJS [UNMAINTAINED next iteration is FountainJS]
http://fountainjs.io
3.72k stars 665 forks source link

Can't serve `dist` directory from a static file server #869

Open chrisUsick opened 9 years ago

chrisUsick commented 9 years ago

This is likely a simple error but when I serve the dist directory using http-server or another express based static file server I get a blank screen. The index.html loads and correctly loads the app-xxx.js and vender-xxx.js scripts. If I use gulp-serve:dist then it works. I can't find what is different from the browser-sync server that serves the dist directory compared to a regular static file server. Is there an additional step to serving the optimized app from a static file server?

Swiip commented 9 years ago

Sorry for the delay. I think it's about relative links between the preloaded partials and the index.html. Don't you have 404 on partials XHR?