ngbolt / ng-bolt

Front-end framework built on AngularJS for rapid development of responsive web applications.
https://ngbolt.github.io
Other
4 stars 2 forks source link

Is loading jQuery before Angular possible using ngBolt? #72

Open alininja opened 6 years ago

alininja commented 6 years ago

Hi ngBolt,

Thank you for the framework. :)

I want to load jQuery before Angular gets loaded so that Angular uses jQuery instead of jqLite.

The libraries > js array in config/build.json allows third party libraries to be included in the app, but using that will not allow me to specify that jQuery should be loaded before Angular.

The only way I can think of is to load jQuery in the index.html manually. Does ngBolt provide a way to compile a pre-libs.js that gets loaded before the libs.js?

Or would we need to make manual updates to the gulpfile.js?

I wanted to get an idea of what we can use from ngBolt vs rolling our own solution.

Thanks again!

jrh418 commented 6 years ago

Right now, you would have to load jquery by adding it to the index page directly. This does sound like a common use case, so I'll add an additional item to the build.json file in a future release to support.