Backend files being load as public - Angularjs / Node / Gulp

I have been struggling to know why my back end files are being loaded as front end files.

As I am working a new project with angular+node+gulp, it seems a bit confusing for me.

Here goes an image with the exceptions.. Any suggestion?

Image Error

Answers


It's impossible to answer your question in a current form.

If JavaScript is loaded on the frontend, it must be because it is referenced in the <script> tag in your HTML. Maybe you are concatenating and minifying more than you need - not only frontend but also your backend files, and they end up being bundled together.


Any chance you have your frontend and backend JS files in the same directory set for gulp to fetch from? So they all get concatenated and loaded from the web page?


Need Your Help

How to filter JSON data with good performances

java json performance rest filtering

I'm having a bit of a problem finding a good solution to this problem: i get JSON data from a RESTful API and i want to filter it according to specific values of a certain field,work with that filt...

How does facebook rewrite the source URL of a page in the browser address bar?

javascript ajax html5 webkit fragment-identifier

Go to http://www.facebook.com/facebook?v=wall, then click on the info tab. The content will be loaded, and the address bar now becomes http://www.facebook.com/facebook?v=info but the webpage didn't