Front End Center - Webpack from First Principles

Поділитися
Вставка
  • Опубліковано 15 січ 2025
  • 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

КОМЕНТАРІ • 122

  • @emilcieslar6428
    @emilcieslar6428 8 років тому

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

  • @PrinceOfDarkness0991
    @PrinceOfDarkness0991 8 років тому

    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.

  • @ryangiglio1921
    @ryangiglio1921 8 років тому +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!

  • @sanguination
    @sanguination 8 років тому +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.

  • @ManuelPenaloza
    @ManuelPenaloza 8 років тому +2

    THE webpack introduction. Just great, thx!

  • @stianmaurstad
    @stianmaurstad 8 років тому +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.

  • @sashabayan3176
    @sashabayan3176 8 років тому +3

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

  • @sc0ttwad3
    @sc0ttwad3 8 років тому

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

  • @jaboyak
    @jaboyak 8 років тому

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

  • @szimek-yt
    @szimek-yt 8 років тому +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?

  • @bluebill1049
    @bluebill1049 8 років тому

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

  • @randypratt658
    @randypratt658 8 років тому +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.

  • @256k_
    @256k_ 8 років тому +13

    EVERYTHING NEXT PLEASE!

  • @murielsilveira
    @murielsilveira 8 років тому +3

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

  • @BrianZerangue
    @BrianZerangue 7 років тому

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

  • @chovyfu
    @chovyfu 8 років тому +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!

  • @RichardvanDuijnGooglePlus
    @RichardvanDuijnGooglePlus 8 років тому

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

  • @ha-component-kit
    @ha-component-kit 8 років тому

    I would love to see more on this series!

  • @ar5hadkhan
    @ar5hadkhan 8 років тому

    this channel is a gem !

  • @yoramcohen1693
    @yoramcohen1693 7 років тому

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

  • @k7n4n
    @k7n4n 8 років тому

    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.

  • @StevenCheney6789
    @StevenCheney6789 8 років тому

    Great video with very clear explanations! Thanks

  • @JonWoo
    @JonWoo 8 років тому +19

    Great video.

  • @tdgalappaththi
    @tdgalappaththi 6 років тому

    Great video. We need more. Thanks a lot.

  • @cassioscabral
    @cassioscabral 8 років тому

    Best Webpack video I've seen. Good job

  • @SergioBarreracoding
    @SergioBarreracoding 8 років тому

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

  • @GregBailey71
    @GregBailey71 8 років тому

    Great Video!! More webpack please

  • @xlUIblisUlx
    @xlUIblisUlx 8 років тому

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

  • @brianevans4
    @brianevans4 3 роки тому

    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?

  • @gabrielbarroso4118
    @gabrielbarroso4118 8 років тому

    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.

  • @bradevans2114
    @bradevans2114 8 років тому

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

  • @CoryTheSimmons
    @CoryTheSimmons 8 років тому

    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?

  • @jayasurian123
    @jayasurian123 8 років тому

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

  • @juankraut1621
    @juankraut1621 8 років тому +1

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

  • @luismuzquiz1400
    @luismuzquiz1400 7 років тому

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

  • @maxkehayov
    @maxkehayov 6 років тому

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

  • @cooop92
    @cooop92 7 років тому

    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.

  • @codewithmarcin
    @codewithmarcin 8 років тому

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

  • @hansdampf10
    @hansdampf10 8 років тому

    Great video. Great tempo and style.

  • @malcolmmiles5395
    @malcolmmiles5395 8 років тому

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

  • @WikiAudio
    @WikiAudio 8 років тому

    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.

  • @ThomasBurleson
    @ThomasBurleson 8 років тому

    Great video... keep them coming!

  • @christopherkarper1776
    @christopherkarper1776 8 років тому +26

    Bundle Splitting next, please.

    • @FrontEndCenter
      @FrontEndCenter  8 років тому +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 8 років тому

      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

  • @pezo1919
    @pezo1919 6 років тому

    Thank You for this video! Awesome!

  • @ha-component-kit
    @ha-component-kit 8 років тому

    I'd Love to see more about this!

  • @rasdwaczy
    @rasdwaczy 8 років тому

    I want more! really enjoyed the video :)

  • @briancorey9690
    @briancorey9690 8 років тому

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

  • @IvanKazandjiev
    @IvanKazandjiev 8 років тому

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

  • @karlpokus
    @karlpokus 8 років тому

    Well done. Thanks for sharing.

  • @VibeCentralMusic
    @VibeCentralMusic 7 років тому

    How does this weigh up against dynamically loading content.

  • @santosharakere
    @santosharakere 8 років тому

    Excellent video. Thank you

  • @skrolikowski
    @skrolikowski 8 років тому

    Very informative video. Thank you.

  • @thiscris_
    @thiscris_ 8 років тому +2

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

  • @RomanCom
    @RomanCom 8 років тому

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

  • @akashagarwal3469
    @akashagarwal3469 7 років тому

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

  • @Adonmasters
    @Adonmasters 8 років тому

    Great video and explanations.

  • @metric152
    @metric152 8 років тому

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

  • @maesitos
    @maesitos 8 років тому +2

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

  • @bulkan.evcimen
    @bulkan.evcimen 8 років тому +1

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

  • @JirkaVrany
    @JirkaVrany 8 років тому

    Great work, thank you.

  • @FitzroyAcademy
    @FitzroyAcademy 8 років тому +1

    This is excellent! Super informative.

  • @macohcoding6775
    @macohcoding6775 8 років тому

    love the tricks you show

  • @itsbazyli
    @itsbazyli 8 років тому +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  8 років тому +2

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

  • @drw2102
    @drw2102 8 років тому

    When is the next video on webpack coming?

  • @_neuromanser_
    @_neuromanser_ 7 років тому

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

  • @HozefaJodiawala
    @HozefaJodiawala 8 років тому +1

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

    • @FrontEndCenter
      @FrontEndCenter  8 років тому +1

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

    • @HozefaJodiawala
      @HozefaJodiawala 8 років тому +1

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

  • @iamsmitthakkar
    @iamsmitthakkar 6 років тому

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

  • @stanbiryukov501
    @stanbiryukov501 Рік тому

    Why did you stop making videos? Very good content

  • @anjith
    @anjith 8 років тому +2

    Thanks for the video.

  • @DanielRamBeats
    @DanielRamBeats 7 років тому

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

  • @_ajduke
    @_ajduke 8 років тому

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

  • @danieljohns1318
    @danieljohns1318 7 років тому

    Great video !!

  • @catherinekim7718
    @catherinekim7718 7 років тому

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

  • @DamjanPavlica
    @DamjanPavlica 8 років тому

    Great explanation.

  • @AndrewSmithDev
    @AndrewSmithDev 8 років тому

    Great video
    Subscribed

  • @HarisZenovic
    @HarisZenovic 8 років тому

    Greet video , keep 'em coming :D

  • @jonkrieger5271
    @jonkrieger5271 8 років тому

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

  • @francistorda2529
    @francistorda2529 8 років тому

    Great video mate.. HMR next, please.

  • @Rapidodalua2008
    @Rapidodalua2008 8 років тому

    Updates, I am going to subscribe.

  • @tiborsaas
    @tiborsaas 8 років тому +1

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

  • @manonjacquin3991
    @manonjacquin3991 7 років тому

    Very helpful thanks

  • @versurio
    @versurio 7 років тому

    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?

  • @Alessandro-nq3tm
    @Alessandro-nq3tm 6 років тому +1

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

  • @Martinspire
    @Martinspire 8 років тому

    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 8 років тому

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

    • @Martinspire
      @Martinspire 8 років тому

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

    • @soviut
      @soviut 8 років тому

      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.

  • @yingjiewang8938
    @yingjiewang8938 8 років тому

    Pretty awesome !

  • @GregBailey71
    @GregBailey71 8 років тому

    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

  • @ChuckReynolds
    @ChuckReynolds 7 років тому

    Nice this was great; more more more more :)

  • @MeneerSpijker
    @MeneerSpijker 8 років тому

    thanks!

  • @mlugggy
    @mlugggy 7 років тому

    hats off

  • @omermindivanli2981
    @omermindivanli2981 7 років тому

    Amazing!

  • @parkerbond9400
    @parkerbond9400 8 років тому +3

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

  • @kai13man
    @kai13man 8 років тому

    nice vid..npm next pls

  • @OnSenseAndReference
    @OnSenseAndReference 7 років тому

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

  • @MrMassaraksh
    @MrMassaraksh 7 років тому

    Great!

  • @axe-z8316
    @axe-z8316 8 років тому

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

  • @axe-z8316
    @axe-z8316 8 років тому

    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

  • @tanglesites5021
    @tanglesites5021 8 років тому

    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.

  • @adamromero
    @adamromero 8 років тому +4

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

  • @TechnoRonin
    @TechnoRonin 8 років тому

    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.

  • @XieLiz
    @XieLiz 8 років тому

    语速好快,我听的有点费力。虽然开启了自动生成字幕功能,概念的理解上跟不上.