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?
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. Theindex.html
loads and correctly loads theapp-xxx.js
andvender-xxx.js
scripts. If I usegulp-serve:dist
then it works. I can't find what is different from the browser-sync server that serves thedist
directory compared to a regular static file server. Is there an additional step to serving the optimized app from a static file server?