Don't learn Webpack in 2023: A dive into 3 alternatives

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 68

  • @andrewandrosow4797
    @andrewandrosow4797 Год назад +9

    I learned Webpack several months ago. In my opinion: 80 percent of work - writing a configuration file, 20 percent of work - writing HTML/JS/CSS code.

  • @邻至陈-k3g
    @邻至陈-k3g Год назад +2

    thanks too much for clearly introduction! Looking forward to your rollup course

  • @devsaber4148
    @devsaber4148 Год назад +9

    It would be really nice to see Your series about rollup (and also another toools :D). I really like Your videos about webpack. This kind of short videos where You compare technologies or talk about let's call it "big bicture" like in this video also sounds nice.

  • @MrTaekbeen
    @MrTaekbeen 5 месяцев назад

    Thanks for the great summary of those build tools! Looking forward to your Rollup js course!

  • @najmantube
    @najmantube Год назад +5

    A Vite tutorial would be great! I followed your webpack tutorial - very good!

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      I'm cooking one up now, along with the other tools I mentioned.

    • @najmantube
      @najmantube Год назад

      @@SwashbucklingwithCode Great! Looking forward to it :)

  • @emmeirather
    @emmeirather 11 месяцев назад +1

    You are awesome bro!

  • @고민영-y7s
    @고민영-y7s Год назад +9

    Please do a rollup tutorial video!!
    By the way, Your webpack tutorial was perfect

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      Awesome. The Rollup one has been challenging for me because of all the different types of projects and tooling people use with it, but I am working at it when I can.

    • @patientlyunaccountable6805
      @patientlyunaccountable6805 Год назад

      @@SwashbucklingwithCode Your webpack tutorial was better than some paid tutorials in udemy.
      Start with vite, it's the most popular. Make a tutorial about how to use vite for normal static projects, (sass, js modules, etc).

  • @MiadVosoughi
    @MiadVosoughi Год назад +1

    Thanks for the great videos you make. Also that Rollup video would be very helpful.

  • @andrewsorenson5492
    @andrewsorenson5492 Год назад +1

    Anyone else here for the ASMR content? Can't get enough of this Swashbuckler talking about hot reloading. Thanks for the video, keep up the great work!

  • @test4321x
    @test4321x Год назад +1

    What is the esbuild plugin for legacy browsers that you mention? :)

  • @bozidarbralic1937
    @bozidarbralic1937 Год назад +2

    Great stuf as usual, please do Vite first and then possibly Rollup, but Vite first off due to its popularity please

  • @KonstantynOfficial
    @KonstantynOfficial 8 месяцев назад

    Great comparison, thanks.

  • @MedyGames
    @MedyGames 6 месяцев назад

    in a sense there are only 2 alterniatives .. since vite is based on esbuild and rollup :)

  • @jesseeatalot
    @jesseeatalot Год назад +1

    This is awesome and helpful!

  • @GauravKumar-ue7nz
    @GauravKumar-ue7nz Год назад +1

    Me halfway through your course and you dropping this Video. JK Awesome content Man.

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад

      I did have that on my mind when making this. The Webpack learnings from those videos will transition quite well in the Rollup and esbuild world, though.

  • @kollabor8
    @kollabor8 Год назад +1

    I think I've kept to webpack as your clips helped to concrete me in, I have been thinking vite lately, but if vite is utilising esbuild and rollup, shouldn't we dip our toes into them too?

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад

      Glad to hear they helped. Vite doesn't reveal much of the esbuild parts for you to have to know, and you'd only need to know rollup if you start needing extra customization that Vite doesn't provide in an easier/automatic way. It's all up to your appetite and what you are doing!

  • @biodiscus
    @biodiscus 10 месяцев назад

    Do you know the html-bundler-webpack-plugin? This plugin allows to use any HTML template as an entry point and works like Vite. All source script and style files can be defined directly in HTML.

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  10 месяцев назад

      Yup, and Vite does a whole lot more than that. But if that suits the needs of your project, fantastic.

  • @solaaar3
    @solaaar3 Год назад

    i would love to see some courses on those three you mentionned, really interested!

  • @pawan29121991
    @pawan29121991 Год назад

    how do you think about rspack and bun ?

  • @bishwajeetpandey1570
    @bishwajeetpandey1570 Год назад +1

    Why you not mentioned about parcel , is something wrong with parcel to use in 2023

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      Definitely nothing wrong with Parcel, it just isn't as popular these days as the others I mentioned. Vite is rapidly dominating the space for a general purpose build tool. I did actually mention at the end of the video that there are other great ones out there, including parcel, that I didn't get into because I was keeping it top 3 for me.

    • @bishwajeetpandey1570
      @bishwajeetpandey1570 Год назад

      @@SwashbucklingwithCode thanks 🙏for your feedback , i got your point

  • @akash-kumar737
    @akash-kumar737 Год назад +1

    Excellent video. Would you recommend learning Webpack for someone who want to really understand build tools?

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад

      Thank you. I think learning Webpack helps a lot with understanding them, and if you are interested in understanding bundling for libraries, or even just all the different ways you can transpile javascript, Rollup is great to study.

  • @maxtsh
    @maxtsh Год назад +1

    We are waiting for you to make a video and dig deep into each one of them so please don't hesitate

  • @Punkwart
    @Punkwart Год назад

    I just watched 3/4 of your Wepack video X1nxTjVDYdQ, liked it and now follow your channel too. The first recent video I see is about not using Webpack in 2023 :D

  • @olegkravchenko9655
    @olegkravchenko9655 Год назад

    Thanks for the interesting info. If you make a tutorial about Vite, please mention about handling multi page setup. I have a small project in Vanilla JS - a few html files and a few split JS modules. Tried to use Vite make a bundle, but got only one index.html file in dist folder instead of all html files. After a quick searching I found samples with input option in Vite configuration file, but no info about output results (as it is in Webpack?). I'm going to experiment with this after finishing the project itself. But would be nice to have a good tutorial video about Vite setup.

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      I will definitely keep that in mind, ty for the suggestion.
      I believe the reason it might be difficult to find multi-page setup info is because the main use case for a lot of people with these tools are single page apps.
      For multi-page, the leading paradigm right now for JS frameworks is server-rendering so you'd just use Next.js, Astro, Remix, etc.
      If you have a use-case that you feel doesn't fit those, I'm interested to hear about it.

    • @olegkravchenko9655
      @olegkravchenko9655 Год назад

      ​@@SwashbucklingwithCode Hi! Thanks for replying. As I said it is a Vanilla JS setup for a simple HTML-CSS website with a few pages like home page - general info, products page for all categories, separate page for one category, page for one item, about page, etc. Each page may have some logic, like a price calculator for product items with different choices, countdown for sale events on home page, and the site in general have some actions used on most pages like burger-menu and scroll to the top. Just to name a few. JS code is splitted on separate modules and compiled depending on a page they should be used. Yes, I know it can be done with frameworks, but in some cases using them is an overkill. In Webpack configuration I could write something like this to make separate JS files for each page or group of pages:
      entry: {
      main: './index.js',
      goods: './goods.js',
      search: './search.js',
      },
      output: {
      filename: './js/[name].js',
      path: path.resolve(__dirname, 'dist'),
      },
      index.js, goods, js, search.js are entry points for different modules, that should result in files with the same names in output directory after Webpack works on them.
      PS It's not a matter of death or live, just curious - maybe there is a similar setup in Vite :)

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      @@olegkravchenko9655 Thank you for the use case example. I'd honestly take a look at Astro, I don't think it is as overkill as you might think. It handles all the code-splitting functionality for you and is very light-weight.

  • @Nurtylek
    @Nurtylek Год назад

    ok, then how to be if my app is using Webpack Module Federation?)

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      That's another good example of an exception, like the others I mentioned at the begging of the video. I have seen some talk around people doing module federation in Vite, though, but it doesn't seem very battle tested to me just yet.

  • @fedordostoevskiy4209
    @fedordostoevskiy4209 Год назад +4

    👍, but only if you're freelancer. It's must have in companies.

    • @dyunior
      @dyunior Год назад

      ohh yeah

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      I've actually seen a growing number of companies adopting these newer tools, and I also think a lot of developers think they need to know Webpack when they are starting out even though they won't be the ones touching the webpack config at all. Still, I think it is a great skillset to have, just not one I would prioritize for most these days.

    • @fedordostoevskiy4209
      @fedordostoevskiy4209 Год назад +1

      @@SwashbucklingwithCode Really, I don't know other tools yet, but web pack in depth for production and customization is hard🤯. I hope new ones are easy. 🤘🤘🤘

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  Год назад +1

      @@fedordostoevskiy4209 It is. Every time I think I have bundling and build tooling figured out, some little thing wrecks me for hours.

  • @sidma6488
    @sidma6488 Год назад

    Where is the Rollup video?😢

  • @heyprotagonist
    @heyprotagonist 11 месяцев назад +1

    I know and use other tools... But I'm not gonna leave webpack...

  • @oortcloud210
    @oortcloud210 Год назад +1

    Another day, another client-side framework, build tool etc
    What ancient technology shall I purge from my brain to make room for Vite? WCF - I think its time to say goodbye.

  • @Kanexxable
    @Kanexxable Год назад +1

    Please show them the light OMG

  • @howuseehim
    @howuseehim Год назад

    webpack doesn't force you to use a framework vite wants you to use one

  • @holypowerenjoyer6059
    @holypowerenjoyer6059 Год назад +1

    Second coming of JSus

  • @Frank-fx8nz
    @Frank-fx8nz Год назад

    😃 Prⓞм𝕠𝕤𝐌

  • @ob34915
    @ob34915 Год назад +1

    Webpack is everywhere this is a bad advice to give specially for juniors dev

    • @SwashbucklingwithCode
      @SwashbucklingwithCode  11 месяцев назад

      I can understand that perspective, but I disagree. If you know you need to learn Webpack because you are at a job where you are in charge of configuring it, then you know you need to and can do so.
      But most of the time newer developers are not in charge of those configs, and I don't think it is a skill that should be prioritized over others with all the advancements that have been made.
      Newer projects will likely use something modern because it is just easier to get the same output, and older projects have someone maintaining their configuration already.
      This is all coming from someone who has spent a lot of time working with Webpack and creating videos for understanding it in the past.

  • @maksymdudyk1718
    @maksymdudyk1718 Год назад

    The author gives his audience a very doubtfull advice.

  • @alexeysamokhin9629
    @alexeysamokhin9629 Год назад

    The truth is that you don't need to bundle anymore in 2023. Widespread use of HTTP/2, faster connections, things like prefetching and robust browsers caching killed need for bundling.