-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
I am trying to use inject together with browserify. The latter is a perfect tool of compiling all local sources with CommonJS requires into one big distributable bundle. Inject can help complete such a setup when setting up a simple development environment without the need to constantly repackage the bundle with browserify.
However, importing existing bundles made by browserify triggers Inject to load resources contained inside those and resulting in a lot of 404s. This might not only load wrong resources, but slows down the initial loading phase a lot.
The proper solution for Inject would be not to parse the require statements that are offered by the browserify package itself.
(EDIT: Updated title to reflect the root of the issue)