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?
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?