Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

How to prevent all JS from compiling into app.js? #533

Open
vidurbhatnagar opened this issue Dec 21, 2017 · 0 comments
Open

How to prevent all JS from compiling into app.js? #533

vidurbhatnagar opened this issue Dec 21, 2017 · 0 comments

Comments

@vidurbhatnagar
Copy link

We are using the generator-m-ionic for a large project that is being built into an android and ios app successfully. We are now planning to serve the same ionic-code as a website via a node.js server as well.

However, when we serve the WWW folder via node.js, the entire app.js (which has the JS code for all of our 20+ controllers) is sent to the client on serving just the login page. With substantial proprietary client side-code, we would like to only serve the login.js controller with login.html and then serve the entire app.js (for all other controllers) post successful login.

What changes would be required in the gulp configuration to achieve the same?
Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant