Learn Webpack Pt. 9: Multiple Entrypoints & Vendor.js

Поділитися
Вставка
  • Опубліковано 5 лют 2025
  • This 10-part course teaches Webpack from scratch. It begins with a simple question: "What is webpack?" Quickly we move on to installing Webpack, configuring it, and adding loaders for CSS, SASS, HTML, and Files. The course covers cache busting, setting up a dev server, and splitting up your development and production config files. We incorporate multiple Webpack plugins including clean-webpack-plugin, mini-css-extract-plugin, optimize-css-assets-webpack-plugin, terser-webpack-plugin, and html-webpack-plugin. It's a lot of stuff :)
    Find all the code and commits for this course in this Github repo: github.com/Col...
    If you're ready to launch your career as a software engineer, check out my job-guaranteed bootcamp with Springboard: springboard.co...

КОМЕНТАРІ • 25

  • @michellefernandez805
    @michellefernandez805 5 років тому +4

    All the videos were very well explained. Thank you Colt, first time seeing your content and very happy to have found this.

  • @jinwookkim8511
    @jinwookkim8511 5 років тому +5

    Best web pack lecture ever already :)

  • @firezdog
    @firezdog 5 років тому +9

    "In webpack version < 4 it was common to add vendors as separate entrypoint to compile it as separate file (in combination with the CommonsChunkPlugin). This is discouraged in webpack 4. Instead the optimization.splitChunks option takes care of separating vendors and app modules and creating a separate file. Do not create an entry for vendors or other stuff which is not the starting point of execution." (???)

  • @ignaciodelamadrid
    @ignaciodelamadrid 4 роки тому

    Very nice presentation man. I certainly did understand the objective of different entry points with this. Kudos.

  • @mohitdas5292
    @mohitdas5292 4 роки тому

    Best series on Webpack!

  • @kirkanos771
    @kirkanos771 6 років тому +3

    Very nice series. Kudos to you.

  • @cheng6523
    @cheng6523 4 роки тому +3

    Wondering why put the bootstrap, jQuery and popper.js into dev dependencies?

  • @ignaciodelamadrid
    @ignaciodelamadrid 4 роки тому +1

    Also, I enjoyed this a lot so I think I'll check your whole tutorial from video 1.

  • @soyebansari1433
    @soyebansari1433 4 роки тому

    best tutorial on webpack... correct me If I am wrong, vendor.js should be placed before main.js

  • @surbhikohli9682
    @surbhikohli9682 11 місяців тому

    I had to import "bootstrap". as well as import 'bootstrap/dist/css/bootstrap.min.css' explicitly .Why does normal import as in the video does not work

  • @DK-ox7ze
    @DK-ox7ze 3 роки тому

    If I have multiple bundles, and each bundle has a dependency on some common module (non-vendor), then will that common module be duplicated in both the bundles?

  • @filippetkovski9957
    @filippetkovski9957 4 роки тому

    Thank you Sir. Quality content!

  • @sharatha6533
    @sharatha6533 4 роки тому +1

    Colt can you please add videos for RX.js

  • @nickwoodward819
    @nickwoodward819 5 років тому

    It works, but any idea why i'd get this error in Firefox?
    Source map error: request failed with status 404 Resource URL: localhost:8080/main.bundle.js Source Map URL: sockjs.js.map

  • @LodPod
    @LodPod 4 роки тому

    Hi colt can you help me, what is the best way to config webpack for bunch of jquery plugins, my config for jquery it self is fine but I want to npm install 2 jquery plugins like mixitup.js and owl.carousel.js, how to import them? Do I need imports-loader or script-loader? Hoping the best suggestions from you

    • @LodPod
      @LodPod 4 роки тому

      Hi, I take back my question, I just need to import the plugins, have a good day

  • @bijitashyabirinchi1721
    @bijitashyabirinchi1721 5 років тому +1

    HI, whats the use of vendor.js file?

    • @jinwookkim8511
      @jinwookkim8511 5 років тому +2

      I think it's where you put 3rd party libraries like bootstrap, jQuery etc in. Since those libraries are kinda static, (I mean, don't change often.) that's the place to put them in.

    • @bijitashyabirinchi1721
      @bijitashyabirinchi1721 5 років тому

      @@jinwookkim8511 I thought we can put them as dependency in package.json file

  • @likelupiniii3466
    @likelupiniii3466 4 роки тому +1

    If anyone runs into an issue with bootstrap not working, try using jquery 3.4, not 3.5. I ran into this issue.

    • @likelupiniii3466
      @likelupiniii3466 4 роки тому

      Jquery 3.5.1 is also working now.. Just installed it and all js/dropdowns are working..

  • @oscarmoncayo9638
    @oscarmoncayo9638 5 років тому +1

    👌🏻

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

    The only reason I'm here is because my npm install is still running. meh

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

    first