-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use browserify for build #8
Comments
What would be the advantage of such solution? |
browserify handles dependency management of your modules very well - I can add/remove a module simply by add/removing the corresponding require() - and during the build process this change is taken into account directly. "This means that the bundle you generate is completely self-contained and has everything your application needs to work with a pretty negligible overhead." From your build process files I see that all js files in the app directory (whether needed or not) are concatenated during the build process -> using browserify helps you to only add the referenced modules & thus automatically the resulting build artifact matches these modules |
Yeah, but in Ionic apps propably:
I would still like to know what is a direct advantage of this solution. What do we gain that we don't have right now? Any real-world usage example? |
browserify makes bundling the multiple modules much easier.
build task example:
https://github.com/vigetlabs/gulp-starter/blob/master/gulpfile.js/config.js
https://github.com/vigetlabs/gulp-starter/blob/33e33e763060e7052ee7b3da430a8dfdca050a4e/gulp/tasks/browserify.js
The text was updated successfully, but these errors were encountered: