Front End Center - Webpack from First Principles

Sdílet
Vložit
  • čas přidán 21. 08. 2016
  • Webpack often gets a bad rap in the front end community - plenty of digital ink has been spilled over whether web development is "too complicated", with Webpack taking center stage. But in reality, it's no more complex than the sites we're building with it, and conceptually its role is quite clear.
    Let's demystify the tool by stripping it back to what it truly is - an ahead-of-time compiler for the browser.
    Like this video? Sign up for more at frontend.center
  • Věda a technologie

Komentáře • 122

  • @PrinceOfDarkness0991
    @PrinceOfDarkness0991 Před 7 lety

    for some reason this showed up in my GoogleNow feed and i'm glad i watched it.i find webpack documentation to be unforgiving for beginners, so thanks for putting the effort into making this , and i'd love to see more advanced webpack topics covered in future videos.

  • @emilcieslar6428
    @emilcieslar6428 Před 7 lety

    Front End Center have the best tutorials on front-end topics! This one especially makes webpack look like it's really easy to use.

  • @stianmaurstad
    @stianmaurstad Před 7 lety +11

    Amazing video! Perfect voice over and nice pace. Keep rolling out quality like this, and your subscribers will flock & the web will get better.

  • @sanguination
    @sanguination Před 7 lety +3

    Great video! Well-spoken, good editing, helpful visualizations.
    Thanks to all for making it, I've been trying to understand webpack for awhile, and now I have what I need to get started.

  • @ryangiglio1921
    @ryangiglio1921 Před 7 lety +1

    This was a GREAT introduction - most things I've seen on Webpack have covered the How very thoroughly but spent less time on the Why, which is really the most important thing. Thanks!

  • @bluebill1049
    @bluebill1049 Před 7 lety

    This is the second subscribe for me in terms of JavaScript. Thanks for supporting the community mate.

  • @jaboyak
    @jaboyak Před 7 lety

    This is a fantastic video. The fact that moving the script tag to the head fixes it is interesting!

  • @ManuelPenaloza
    @ManuelPenaloza Před 7 lety +2

    THE webpack introduction. Just great, thx!

  • @yoramcohen1693
    @yoramcohen1693 Před 7 lety

    Great video. I would be grateful if you continue with more videos on webpack. Thanks

  • @randypratt658
    @randypratt658 Před 7 lety +1

    Hello, thank you very much for showing this, it is one of the best videos on webpack that I have seen. I wish you would slow down a little bit and go a little deeper. Keep making these videos and I think you'll be doing very good here on You Tube! Thank you for this.

  • @sashabayan3176
    @sashabayan3176 Před 7 lety +3

    Loved the episode! Thorough, thoughtful, and easy to follow. Looking forward to more to come!

  • @256k_
    @256k_ Před 7 lety +13

    EVERYTHING NEXT PLEASE!

  • @brianevans4
    @brianevans4 Před 2 lety

    This guy literally invented styled-components!! Such high quality content, would be great to see more of it! I notice he hasn't uploaded in a few years?

  • @JlNGLEZ
    @JlNGLEZ Před 7 lety

    I would love to see more on this series!

  • @sc0ttwad3
    @sc0ttwad3 Před 7 lety

    Best concepts into practice + tutorial available so far! Look forward to ongoing videos.

  • @luismuzquiz1400
    @luismuzquiz1400 Před 7 lety

    This is what you call a GREAT presentation. i can only say wow.

  • @murielsilveira
    @murielsilveira Před 7 lety +3

    Very clear and simple explanation! Looking forward to future videos!

  • @StevenCheney6789
    @StevenCheney6789 Před 7 lety

    Great video with very clear explanations! Thanks

  • @chovyfu
    @chovyfu Před 7 lety +17

    Wow. this is the video i've been looking for -- everything I've seen about webpack made it sound so complicated and turned me away. Now I'm sold. I do wonder how you can generate two bundle files though? as I have two different pages in my site.
    also a gotcha that took me awhile to find (when loading semantic-ui over webpack) was that the short name loaders "css" and "url" both through odd errors in webpack. Turns out it was a name collision and you should always use the full `css-loader` and `url-loader` loader names to avoid this.
    Great video though, looking forward to more!

  • @xlUIblisUlx
    @xlUIblisUlx Před 7 lety

    Very well explained, immediately subscribed, looking forward to more.

  • @arshadkhan9124
    @arshadkhan9124 Před 7 lety

    this channel is a gem !

  • @szimek-yt
    @szimek-yt Před 7 lety +5

    That's the best Webpack intro I've seen so far. I really hope for more advanced Webpack related topics once 2.x is released ;)
    2 questions:
    - what editor and plugin are you using for opening files by clicking their path names?
    - any chances to enable "community-contributed subtitles" to allow others to provide subtitles in other languages for your videos, at least for the free ones?

  • @cassioscabral
    @cassioscabral Před 7 lety

    Best Webpack video I've seen. Good job

  • @tdgalappaththi
    @tdgalappaththi Před 5 lety

    Great video. We need more. Thanks a lot.

  • @BrianZerangue
    @BrianZerangue Před 6 lety

    Amazing video! Thank you for the clear intro to Webpack! Would love more Webpack videos!

  • @k7n4n
    @k7n4n Před 7 lety

    Thanks for such a clear and informative intro to Webpack. I've gone through the official Getting Started docs but this is so much better. Looking forward to watching the Webpack 2 video.

  • @RichardvanDuijnGooglePlus

    Thanks for the great and clear introduction!. Will be keeping an eye on the channel to see future additions!

  • @gabrielbarroso4118
    @gabrielbarroso4118 Před 7 lety

    Just subscribed, that was a really good tutorial. Please keep this up! Would love to see more details of webpack and also babel and learn how/why things work.

  • @christopherkarper1776
    @christopherkarper1776 Před 7 lety +26

    Bundle Splitting next, please.

    • @FrontEndCenter
      @FrontEndCenter  Před 7 lety +19

      Will do, but that API is changing up with Webpack 2, so I'm going to wait until that's out & bedded in and then do a follow up to this one.

    • @chovyfu
      @chovyfu Před 7 lety

      bundle splitting would be nice. even for webpack 1. Your video is great, but i can't move forward because I have two js files that can't be combined easily.
      edit: was easy, the vendor was a little tricky, but I figured it out: webpack.github.io/docs/code-splitting.html#split-app-and-vendor-code

  • @juankraut1621
    @juankraut1621 Před 7 lety +1

    Gidyup! Absolutely great video. I've subscribed and encourage you guys to keep doing this amazing job.

  • @GregBailey71
    @GregBailey71 Před 7 lety

    Great Video!! More webpack please

  • @bulkan.evcimen
    @bulkan.evcimen Před 7 lety +1

    Great video. Even though I have used webpack before and I'm familiar with it I enjoyed your explanation.

  • @CoryTheSimmons
    @CoryTheSimmons Před 7 lety

    Really well made tutorial Glen. This helped me understand why people are flocking to Webpack. Excited to see the Webpack 2 videos. In the meantime, please consider doing a screencast on CSS Modules. Also, what are your thoughts on Rollup? It already has treeshaking and seems to output cleaner. Are we all just sticking with Webpack because it's popular/has the most third party packages?

  • @FitzroyAcademy
    @FitzroyAcademy Před 7 lety +1

    This is excellent! Super informative.

  • @cooop92
    @cooop92 Před 7 lety

    Great intro video! I had always been put-off webpack after hearing things about it online but now I actually want to give it a go, thanks.

  • @JonWoo
    @JonWoo Před 7 lety +19

    Great video.

  • @maxkehayov
    @maxkehayov Před 6 lety

    Hey Glen, kudos for your videos. Good looking and very informative!

  • @bradevans2114
    @bradevans2114 Před 7 lety

    Great video... would love to see tutorials on the topics mentioned at the end. Especially Hot module replacement and bundle splitting. Thanks!

  • @briancorey9690
    @briancorey9690 Před 7 lety

    Thank you so much! Really down to earth and relevant.

  • @ThomasBurleson
    @ThomasBurleson Před 7 lety

    Great video... keep them coming!

  • @rasdwaczy
    @rasdwaczy Před 7 lety

    I want more! really enjoyed the video :)

  • @skrolikowski
    @skrolikowski Před 7 lety

    Very informative video. Thank you.

  • @JlNGLEZ
    @JlNGLEZ Před 7 lety

    I'd Love to see more about this!

  • @pezo1919
    @pezo1919 Před 6 lety

    Thank You for this video! Awesome!

  • @codewithmarcin
    @codewithmarcin Před 7 lety

    Keep up the good work mate! Looking forward to future episodes.

  • @SergioBarreracoding
    @SergioBarreracoding Před 7 lety

    Great intro to Webpack! CSS and image loading in particular.

  • @hansdampf10
    @hansdampf10 Před 7 lety

    Great video. Great tempo and style.

  • @metric152
    @metric152 Před 7 lety

    This was a really good video. Thanks for breaking this down.

  • @malcolmmiles5395
    @malcolmmiles5395 Před 7 lety

    A great video, so well explained. Any chance of a follow-up?

  • @DanielRamBeats
    @DanielRamBeats Před 7 lety

    dude, your videos are just awesome. Thanks for sharing! :)

  • @itsbazyli
    @itsbazyli Před 7 lety +6

    I think one of the better ways to deal with that CSS flashing is to use ExtractTextPlugin with the CSS and then put that CSS back into the head.

    • @FrontEndCenter
      @FrontEndCenter  Před 7 lety +2

      Yep, definitely the way to go once you hit a certain size.

  • @jayasurian123
    @jayasurian123 Před 7 lety

    Bundle splitting is one of the complicated thing. Could you do video on that?

  • @karlpokus
    @karlpokus Před 7 lety

    Well done. Thanks for sharing.

  • @IvanKazandjiev
    @IvanKazandjiev Před 7 lety

    Thanks for the good intro guys. Keep up the good work :)

  • @WikiAudio
    @WikiAudio Před 7 lety

    The style of this video is absolutely excellent! If you don't mind me asking, what tools do you use to create your block diagrams ? I unabashedly want to emulate it. They are really clean.

  • @santosharakere
    @santosharakere Před 7 lety

    Excellent video. Thank you

  • @thiscris_
    @thiscris_ Před 7 lety +2

    Sup Glen, which font are you using in both editor and console? Thanks!

  • @Adonmasters
    @Adonmasters Před 7 lety

    Great video and explanations.

  • @anjith
    @anjith Před 7 lety +2

    Thanks for the video.

  • @JirkaVrany
    @JirkaVrany Před 7 lety

    Great work, thank you.

  • @macohcoding6775
    @macohcoding6775 Před 7 lety

    love the tricks you show

  • @Rapidodalua2008
    @Rapidodalua2008 Před 7 lety

    Updates, I am going to subscribe.

  • @danieljohns1318
    @danieljohns1318 Před 6 lety

    Great video !!

  • @HarisZenovic
    @HarisZenovic Před 7 lety

    Greet video , keep 'em coming :D

  • @manonjacquin3991
    @manonjacquin3991 Před 6 lety

    Very helpful thanks

  • @RomanCom
    @RomanCom Před 7 lety

    Awesome explanation! When are we going to see new videos on webpack?

  • @jonkrieger5271
    @jonkrieger5271 Před 7 lety

    This video was great, this is exactly the kind of content I'm desperately needing. Sub'ed! Please keep it up! :D :D :D

  • @ChuckReynolds
    @ChuckReynolds Před 6 lety

    Nice this was great; more more more more :)

  • @_ajduke
    @_ajduke Před 7 lety

    Amazing primer on Webpack!!
    But, 2 months and no videos, please upload more

  • @DamjanPavlica
    @DamjanPavlica Před 7 lety

    Great explanation.

  • @omermindivanli2981
    @omermindivanli2981 Před 6 lety

    Amazing!

  • @AndrewSmithDev
    @AndrewSmithDev Před 7 lety

    Great video
    Subscribed

  • @francistorda2529
    @francistorda2529 Před 7 lety

    Great video mate.. HMR next, please.

  • @Alessandro-nq3tm
    @Alessandro-nq3tm Před 6 lety +1

    OMG thank you , i feel really dummy watching this :)

  • @yingjiewang8938
    @yingjiewang8938 Před 7 lety

    Pretty awesome !

  • @iamsmitthakkar
    @iamsmitthakkar Před 6 lety

    Great Video ! Can you make a video/playlist for React testing ?

  • @stanbiryukov501
    @stanbiryukov501 Před rokem

    Why did you stop making videos? Very good content

  • @catherinekim7718
    @catherinekim7718 Před 6 lety

    great video, would like to see how to create css from sass.

  • @MeneerSpijker
    @MeneerSpijker Před 7 lety

    thanks!

  • @sergeycleftsow4389
    @sergeycleftsow4389 Před 7 lety

    Seems to me such tools like webpack even if they improve performance etc actually make web clumsy compromising one of its main principles (KISS).

  • @akashagarwal3469
    @akashagarwal3469 Před 7 lety

    do you have this code base in a git you are using for demo purpose ??

  • @maesitos
    @maesitos Před 7 lety +2

    what's the editor at 1:18 and the terminal app at 1:01 ? Thanks!

  • @VibeCentralMusic
    @VibeCentralMusic Před 7 lety

    How does this weigh up against dynamically loading content.

  • @MrMassaraksh
    @MrMassaraksh Před 6 lety

    Great!

  • @tanglesites5021
    @tanglesites5021 Před 7 lety

    yes everything! pls! Webpack is def the future...if not a variant of it...asynchronous bundling def is the way to go....which is a fancy way of saying pre-pro
    cessing browser engine I suppose.

  • @_neuromanser_
    @_neuromanser_ Před 7 lety

    I am using requireJS for my dependency management. What are the benefits of Wepback compared to RequreJS? Question for those who used both.

  • @mlugggy
    @mlugggy Před 7 lety

    hats off

  • @parkerbond9400
    @parkerbond9400 Před 7 lety +3

    how have I not heard of npm scripts until now?!?

  • @versurio
    @versurio Před 7 lety

    Putting all those images, styles and etc in one file is good for loading speed increasing if to compare it with non bundling version in first time loading. But in case of non bundling approach all those resources will be cashed and will not consume network next times. Also assume now that we have several pages which use same resources, then if you not bundle then overall speed of navigating through the pages will be faster then bundling version. Seems that bundling is controversial approach. It may give benefits in some cases and in other case will not. So after all does this additional complexity with bundling everything in one file even worth?

  • @HozefaJodiawala
    @HozefaJodiawala Před 7 lety +1

    Does the code reside in a git repo to have a look at?

    • @FrontEndCenter
      @FrontEndCenter  Před 7 lety +1

      Yep, it's here: github.com/geelen/webpack-from-first-principles

    • @HozefaJodiawala
      @HozefaJodiawala Před 7 lety +1

      Thanks. Please create more tutorials that on the topics mentioned at the end. Would be very useful.

  • @drw2102
    @drw2102 Před 7 lety

    When is the next video on webpack coming?

  • @GregBailey71
    @GregBailey71 Před 7 lety

    It would be useful to show how to get your web site rendered via localhost:8080. I think people would like to follow along and we seem to be missing a step

  • @Martinspire
    @Martinspire Před 7 lety

    I know this is an example, and a basic one at that, but for most Webpack things you post in this video, simply bundling and uglifying your code can be achieved with gulp and uglify/concat as well. I think for most sites webpack is overkill. Especially since some use it for AngularJS and webapps of which you only open the main page and not really switch page that the server is rendering. As in: you pretty much need to load the same stuff anyways. And of course having a short loading time is nice, but for most webapps i've been making the loading time isn't really that important (like 1.2 vs 1.4 seconds with only the page you need vs all pages are in cache) apart from simply uglifying, combining and removing anything you won't be using anyways. People won't mind loading a bit if its some kind of user-portal (which Angular does well). Not to mention that Webpack really benefits from a nodejs server and doesn't really work well if you make them as static resources.
    Anyways, the tutorial was nice and i'm going to follow to see if i can learn a thing or two...

    • @jonathanphilips4510
      @jonathanphilips4510 Před 7 lety

      Enjoy the loading times of Angular 2, a 1MB framework.. Haha
      Ember or Aurelia is the way to go.

    • @Martinspire
      @Martinspire Před 7 lety

      I never mentioned that i was using Angular2 which will obviously get smaller too

    • @soviut
      @soviut Před 7 lety

      I built plenty of single page apps and have steadily migrated from grunt, to gulp to webpack. The tree-shaking is especially nice in Webpack because I save a tonne of space on NPM imported libraries, compared to just including the whole minified lib.

  • @tiborsaas
    @tiborsaas Před 7 lety +1

    Jesus, why do I need a plugin to load a URL? They should have been added to that to the core.

  • @kai13man
    @kai13man Před 7 lety

    nice vid..npm next pls

  • @axe-z8316
    @axe-z8316 Před 7 lety

    also, you can slow down and go a bit deeper, im a bit familiar with webpack, but if this was my first tutorial , I 'd be asking lot's of questions I guess

  • @adamromero
    @adamromero Před 7 lety +4

    At the beginning, I thought he said Front End Santa.

  • @axe-z8316
    @axe-z8316 Před 7 lety

    Superbe , you should really add a codepen, or git files.

  • @simonboddy7415
    @simonboddy7415 Před 7 lety

    Thank goodness there are some smart people left among all the carnage. Why are so many of them Australians !

  • @TechnoRonin
    @TechnoRonin Před 7 lety

    Nice video, I just wish people would stop speeding up their videos, when you talk at normal speed and your videos play at xx it makes it hard to follow the subject, either speed up both the video and audio together or better yet don't speed anything up.