noppa / ng-hot-reload

Hot reloading for AngularJS apps.
MIT License
43 stars 8 forks source link

can this be integrated with vite? #57

Open Newbie012 opened 2 years ago

Newbie012 commented 2 years ago

I'm looking to integrate hot reload for my angularjs application. The thing is, I'm using vite rather than webpack. I was wondering if this library could be integrated with vite somehow

noppa commented 2 years ago

Their HMR API looks very similar to Webpack's, so probably yes.
I guess you'd need to look into Vite's Plugin API and reimplement the Webpack loader package for it.

It doesn't look like it would take too much work to make it work (the loader is pretty small piece of code). However, I haven't personally used AngularJS in a long while so I don't really get personal gain from implementing this, so it might take quite a while before I find the motivation/time to do so. If you or anyone else wants to take a stab at it I'd be happy to give advice / help and eventually merge it in here.

SidIcarus commented 1 year ago

@Newbie012 Did you get this working?

Newbie012 commented 1 year ago

@SidIcarus Sorry but no. Webpack and Vite work differently, which would've made me put in lots of effort. If it helps, we eventually adopted incrementally React (which runs inside AngularJS) instead.