-
Notifications
You must be signed in to change notification settings - Fork 13
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
Bundle and Minify output #88
Comments
Hey man, looking for an excuse to play around with ng2/TS and remembered you were working on this. Thought I might try to help out a bit if you are down for PRs. Did you have any thoughts on a direction for this? I've done just straight concat/minify with gulp in the past, but Webpack seems like a much better approach these days if you're down for that. |
I think the main goal is that it would bundle, minify (only for prod), and package templates as well. Then we could get rid of systemjs that I'm using currently. I would lean towards webpack. I spent a little time playing with Browserify with tsify, but didn't get it to a working point. |
Cool. Have an opinion about whether to continue to CDN external libs? Don't know if that was a technical or financial choice. |
Currently, it's more of a technical than financial choice. The angular2 bundles I have locally don't seem to work properly in all scenarios. If I choose the angular2.min.js, I actually get errors loading it in the browser, and it's 500kb. The CDN minified one is like 111kb, and no errors. Not sure what's going on there, but probably a beta thing. Ideally we would have the option to switch back to including them in the bundle later. Though I'm not really opposed to just leaving it CDN. |
Okay, I'll play around with it both ways and see what's up. I know one of the benefits of bundling them from local deps is being able to depend on only the submodules that you use instead of the entire lib. Like with lodash being able to do...
...and have webpack only include the parts of the lib actually used. |
Yea, that's another issue I have on here that I wanted to solve at one point. If you can tackle that all, go for it. |
Hey man, made some progress on this over the weekend and interested in getting your feedback before I keep going: https://github.com/smathson/chatty/commits/bundle-with-webpack TLDR: Should be able to pull that branch, Done so far:
Still to do:
Keep in mind that I tend to commit early and often with Let me know if you have any questions/comments/concerns. |
Did a cursory code review and it looks good. A few thoughts
Good start! |
|
I've removed the gulp-publish task and associated dependency. You should be able to fully remove gulp now. |
Any update on this? Pretty excited to get this bundled as it will reduce my s3 usage quite a bit. Also been avoiding working on anything big so you don't get merge conflicts. Anything I can help with? |
Yeah sorry man, right in the middle of a job transition at the moment and haven't had enough free time lately to finish this. Got the styles switched back over to PostCSS and added style linting back in, so just need to do the production configuration now. Got some free time today to work on this but don't want to hold you up on anything so if I don't make enough progress I'll at least try to get things into a good state to hand off for you to finish. Expect a PR later today! |
The text was updated successfully, but these errors were encountered: