FredrikSandell / angular-workers

MIT License
69 stars 25 forks source link

Using with Browserify #12

Closed NickBolles closed 7 years ago

NickBolles commented 8 years ago

I am currently trying to do exactly what this service does!.... BUT! I am using browserify. So the URL's don't really work. I have also been looking at WebWorkify https://github.com/substack/webworkify

Basically I need a combination of the two tools. Do you have any tips on achieving this?

I am considering changing the .addDependency function to take a function argument, which could be used to do something like .addDependency(require('./utils/service.js')). The function would then be stringified instead of created into an include script statement. Is this a good approach?