Тёмный

Webpack 5 Full Project Setup 

Swashbuckling with Code
Подписаться 9 тыс.
Просмотров 96 тыс.
50% 1

We are going for the big haul on this one. We'll start out creating a new Webpack 5 project, putting it on Github, and adding all the parts we need as we go. By the end we'll have a Single Page App (SPA) setup that is hosted with some basic continuous integration (CI) so that every time we push, or make a pull request, to the main branch our site automatically updates.
We'll be covering a ton of common functionalities needed in a Webpack project such as:
- Babel and @babel/preset-env for modern JavaScript transpiling.
- CSS, SASS, PostCSS with postcss-preset-env for CSS fallbacks for better cross-browser support.
- Browserslist config for customizing the browsers you want to support for JS and CSS, all in one place.
- Outputting all CSS to a file with mini-css-extract-plugin
- HTML templates with html-webpack-plugin
- Cleaning the output folder every build with clean-webpack-plugin
- React with the new automatic importing functionality supported in React 17+ through Babel.
- React Fast Refresh in Webpack: the new hot module loading tool supported by the React team.
- Outputting or bundling images with the new Webpack 5 Asset Module type.
- Quickly getting your app/site hosted on Netlify.
By the end of the video you'll be familiar with setting up plugins and loaders of varying types so that you can use this project as a starter for each project, as well as knowing how to modify it for your projects needs.
❗❗ IMPORTANT UPDATES ❗❗
webpack-dev-server update
`webpack-dev-server` released version 4 on 2021-08-18, which has a breaking change for this video. In the `webpack.config.js` file, under `devServer`, the `contentBase` property has been changed to `static`. If you use `contentBase`, like I do in the video, you'll get an error. You can either use `webpack-dev-server` ^3.11.0 (which is what this video uses) and just follow along with the video, or you can install the latest and update to the required change.
Here is the link to the webpack docs for this property:
webpack.js.org/configuration/...
And here is a link to the migration guide from v3 to v4:
github.com/webpack/webpack-de...
WINDOWS USERS
Some of the scripts I make to set environment variables will not work on Windows. I've made a video to fix that issue here:
• Windows development: F...
Hot Reloading issues
Your issue might be different, but just in case -- If you are having troubles with hot reloading check out this video, also in the Webpack playlist on my channel, which shows a fix:
• Solution for Webpack 5...
~~~~~~
00:00:00 - What we'll cover in the video
00:02:39 - Setting up the project and repo
00:14:13 - Babel
00:17:49 - Source Maps
00:22:12 - CSS, SASS, PostCSS, HMR
00:38:12 - browserslist
00:47:46 - React with JSX
01:00:17 - Images
01:19:42 - Automated cleaning and html template
01:31:59 - Hosting on Netlify
01:35:04 - React Fast Refesh
01:57:35 - Wrap up
~~~~~~
Webpack 5 playlist:
• Webpack 5
Repository for reference (left alone for historic reference purposes):
github.com/Jimmydalecleveland...
Branch for the latest updates to the previous repo code:
github.com/Jimmydalecleveland...
Follow Jimmy Cleveland's doings:
twitter: / jimmydcleveland
blog: blog.jimmydc.com/
#webpack #webpack5 #babel #react #fastrefresh #browserslist #toomanyhastags

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 495   
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
❗❗ IMPORTANT UPDATES ❗❗ ### webpack-dev-server update `webpack-dev-server` released version 4 on 2021-08-18, which has a breaking change for this video. In the `webpack.config.js` file, under `devServer`, the `contentBase` property has been changed to `static`. If you use `contentBase`, like I do in the video, you'll get an error. You can either use `webpack-dev-server` ^3.11.0 (which is what this video uses) and just follow along with the video, or you can install the latest and update to the required change. Here is the link to the webpack docs for this property: webpack.js.org/configuration/dev-server/#devserverstatic And here is a link to the migration guide from v3 to v4: github.com/webpack/webpack-dev-server/blob/master/migration-v4.md ### WINDOWS USERS Some of the scripts I make to set environment variables will not work on Windows. I've made a video to fix that issue here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-t9okUDkRUDc.html ### Hot Reloading issues Your issue might be different, but just in case -- If you are having troubles with hot reloading check out this video, also in the Webpack playlist on my channel, which shows a fix: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-lNkVndKCum8.html
@greenhermit6288
@greenhermit6288 2 года назад
Hi there, I have been following this tutorial recently, am up to the automated cleaning and html template and skipped the react section. I want to add one issue I have been having (and it could be me or a difference in the webpack versions) but when an image asset is bundled in the js file (if the type prop is "asset/inline") it appears to be included inside my "main.css" file not my main.js file as in yours. Not a big deal for me but could be worth noting. Similarly, I didn't have to add a separate rule in my webpack config for it to handle images, it loaded them all up by default. Cheers for the tutorial and also the diligence to keep it updated, is a very good thing to do.
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
@@greenhermit6288 I'm not sure I follow, what does it mean to have an asset included in the css file? Do you mean just the link to the asset, like `background: url(imagelink.jpg)`?
@trungvu6814
@trungvu6814 2 года назад
@@SwashbucklingwithCode Hi, can I still use react refresh? it noticed that react refresh use webpack-dev-server v3 and can't resolve when installing. Thank you
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
@@trungvu6814 I haven't used v4 of dev server on any projects so I couldn't say how it affects react refresh. If it's a peer dependency issue, you can always use --legacy-peer-deps, but for long term projects you usually want to avoid that.
@xxxtalxx
@xxxtalxx 2 года назад
Thank you for being considerate enough to mention updates like this. Saved me a headache.
@k4qdex
@k4qdex 2 года назад
jesus teaching us webpack. what a time to be alive
@mykolao
@mykolao 3 года назад
Thank you, Jesus! This is exactly what I was praying for :D
@riendlyf
@riendlyf 3 года назад
Твой коммент сделал мой день!))
@amphibia95
@amphibia95 3 года назад
Haha xD I have the same feeling right now.
@kabs29
@kabs29 2 года назад
🤣🤣
@i8ET
@i8ET 2 года назад
I was thinking a mix between Jared Leto and Jesus 🤣
@claudiobaumgartner2760
@claudiobaumgartner2760 3 года назад
Honestly I can't see any reason why you don't have thousands of followers by now. Quality content, nice pace, all for free! Amazing! Thx a lot.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you kindly. The channel is still relatively new so I'm content with the growth pace right now.
@amphibia95
@amphibia95 3 года назад
+1!
@Ianmat55
@Ianmat55 2 года назад
Just saved me hours of banging my head against the wall trying to figure out why my images aren't loading. Thanks.
@iamprincemuel
@iamprincemuel 2 года назад
This is awesome! Hard to find gems like this. Thanks a lot
@jjaxner
@jjaxner 3 года назад
Thank u so much. I've learned so much from this video. Love how you don't just throw in a config-parameter but take time to explain what it does and show what it solves.
@BrewskaySA
@BrewskaySA 3 года назад
You did a great job on this video very informative and well thought out!
@satyaspb1
@satyaspb1 2 года назад
Really appreciate your knowledge, teaching style and the patience to teach as depth as possible. thank you so much learn a lot from your single video.
@anthonymarquez2542
@anthonymarquez2542 2 года назад
The best video that actually explains the webpack config properly, without assuming people's knowledge about the subject. ♥♥♥
@dpdoescode
@dpdoescode 3 года назад
Great video 👏 I love how you go through the git commits after each section to have a quick overview of what you've done. Great way of taking this in chucks instead of all in one go.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you, I was wondering how people would feel about that, as it does slightly add to video length.
@utsavojha2953
@utsavojha2953 3 года назад
Than you so much! Amazing walkthrough! Learned alot!! I was stuck in a loop of errors cause I couldn't set babel up with webpack, this is just awesome, i learned why were doing some of these things!
@anuragnair5672
@anuragnair5672 2 года назад
This is the best tutorial on the internet for webpack . Learned a lot from it!!!
@skoodath
@skoodath 2 года назад
Although I am late to the party, this is the best explanation of webpack and how it works I have ever seen! I haven't even finished watching the video yet. Great job!
@utsavojha2953
@utsavojha2953 3 года назад
Rewatched this for the 3rd time, Jimmy youre videos are awesome and we all hope you keep uploading this amazing content on here.. You are really awesome for doing this, cheers!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I really appreciate that, thank you. The time factor is always a battle, but I plan to keep trying for awhile.
@thepopstudio2354
@thepopstudio2354 3 года назад
You are freaking awesome dude, keep doing this man!
@romazahrypa
@romazahrypa 3 года назад
Subscribed, immediately after checking out a few of chapters! Descent quality!
@JoelRemix
@JoelRemix 3 года назад
More than decent. Superb!
@skdehuri
@skdehuri 3 года назад
Maybe it's my lucky day I found your video on my recommendation. Thank you so much for this walkthrough. I was struggling to configure react fast refresh until I found this one. Great explanation and the small details and errors you focus on are really interesting.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I had a lot of struggles with react refresh and the new Webpack+Babel versions. Thank you for letting me know the troubleshooting parts were useful, that's what I'm trying to balance the most right now in my videos.
@boribilder_sem_basal
@boribilder_sem_basal Год назад
Thank you bro, 1 year after and you still helping a lot of people!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Happy to help. I have much more tools I need to cover but finding time has been quite difficult. It's always nice to get some positive reinforcement for making time, thank you.
@andregomes7232
@andregomes7232 2 года назад
This is real nice stuff. Thanks and congrats man
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Thank you.
@mubashirwaheed474
@mubashirwaheed474 2 года назад
I just hit gold. Thank you so much
@vijaykumarreddyalavala3713
@vijaykumarreddyalavala3713 3 года назад
Just when I need it. Thank you so much
@frontend.experiencetech
@frontend.experiencetech 3 года назад
OMG, this is the best Webpack detailed tutorial ever. I wish it reaches millions of views and likes. Thank you for making this video with such details.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you, truly. It means a lot to me, and my motivation, for you to say so.
@andrewperez7844
@andrewperez7844 2 года назад
Wow man thank you so much for this content. This helped me getting a legacy project at my job more up to date with Webpack 5. You also helped me understand this whole complicated concept as well. Love your calm demeanor and explanations. New sub!
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Fantastic. Glad to be of help.
@shvideo1
@shvideo1 Год назад
Great tutorial and content. I followed it all through and deployed to Netlify. I added Typecript as well. The process is a bit more smoother with most of the mentioned bugs fixed already. Thank you for your great effort for putting this together and the great tempo and your attitude -- relaxed! You did an excellent job!
@ShubhamGupta-qk9uq
@ShubhamGupta-qk9uq 2 года назад
Thanks for all the knowledge! , really like your style of teaching
@hasantktl
@hasantktl 2 года назад
Really priceless tutorial. You use state of the art dev methods and explain them step by step. You dont hide some of your knowledge and this is really deserves millions of like.
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
very kind, thank you.
@miray6497
@miray6497 3 года назад
I was watching your video "Webpack 5 CSS Walkthrough" to learn about webpack and I was confused about browserslist thing. Then you add a new video about that! This is my lucky day!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I actually thought about doing a little video just for browserslist, but hopefully between these 2 videos there is enough on it. Let me know if not.
@saeedm9772
@saeedm9772 11 месяцев назад
I used it to refresh my memory. That was great tut with great information. Thank you. Keep it up.
@RyantheCanuckpirate
@RyantheCanuckpirate Год назад
This is a tremendous resource. Webpack was super intimidating when I tried to use it for the first time (reading the official docs). Having someone explain all the basic features was definitely worth the hours it took me to get me through the entire video. Also as a first time viewer I was definitely not expecting the last 30 secs. Perfect ending!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Thank you for the kind words and I'm always happy to hear the effort put into making the video was worth it.
@tylerduprey7355
@tylerduprey7355 2 года назад
I really enjoyed this course! Thank you.
@PeteSchroederJr
@PeteSchroederJr 2 года назад
Excellent video, thanks!! This will be my go to for set up!
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Nice.
@arjunp6323
@arjunp6323 3 года назад
Cannot thank you enough mate ,not even a comprehensive course could cover what u have thought over here, I could never get a proper video for a complete configuration of webpack to know how it works, until I came across this video of yours. thank you once again for investing your time to share the knowledge ..
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I'm happy it helped, and thank you for letting me know.
@abdussamad0348
@abdussamad0348 4 месяца назад
Amazing knowledge, well explained. The transition to react is too smooth.
@mateusmiguel_
@mateusmiguel_ Год назад
Thanks a lot for this video/project! I spent the weekend on this and definitely it was worth!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Very awesome to hear, thank you.
@connerlinzy8889
@connerlinzy8889 3 года назад
Exactly what I needed. Thanks!
@omkarkulkarni3644
@omkarkulkarni3644 3 года назад
You just got a subscriber. Awesome tutorial. Concise and to the point .. best luck :D
@ram-bk4mu
@ram-bk4mu 3 года назад
Thanks dude, i like the way you explain stuff!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I'm very glad to hear it!
@lesiakutran3523
@lesiakutran3523 3 года назад
thank you for everything you do!
@boxfreshpidge
@boxfreshpidge 3 года назад
Great timing!
@greatauntmuriel
@greatauntmuriel 3 года назад
this is exactly what I needed rn thank you!!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
My pleasure.
@amphibia95
@amphibia95 3 года назад
I feel like my life has gotten a little bit easier after watching this video. Thanks so much for sharing your knowledge! I'm working as a frontend dev for only 3 years now and I wish I knew half of what you know. Hope you get millions of likes and views.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
What a delightful compliment, thank you very much. And I assure you, I wish I knew much more than I do in a ton of areas and am always looking up to other devs, haha. It never ends.
@kozmikhero6749
@kozmikhero6749 3 года назад
Took a 18 month break from coding only to return to everything being so different. Thank you subbed for sure. Theres so many tiny gotchas for these libraries that most people don't even mention!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
It is certainly a blessing and a curse, how fast the industry moves. There are few days a week that I am not studying, and I still feel overwhelmed.
@0x7A69
@0x7A69 2 года назад
What a time saver. Thanks for this vid.
@MingLiHI
@MingLiHI 3 года назад
Really awesome work! I learned a lot of webpack knowledge from your video.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Glad to hear it.
@miray6497
@miray6497 Год назад
I'm watching this whenever I need webpack it's so explanatory. Thank you so much!!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Awesome, thank you for saying so.
@mikehart5395
@mikehart5395 2 года назад
thankyou so much for this, helped me out loads.
@bdk9830
@bdk9830 2 года назад
thank you a lot covering this tutorial
@ranvijaysingh7967
@ranvijaysingh7967 Год назад
Thanx man it really helped to get started with webpack and reactjs
@oortcloud210
@oortcloud210 Год назад
Great video - the changes made in WebPack 5 can be difficult to unpick when trying to set up a project with babel, react, less, css, images, ESLint etc etc this really helped me find which options are still applicable and which are changed. Thank you.
@remo7168
@remo7168 3 года назад
Great tutorial about Webpack 5!
@raymondvu2173
@raymondvu2173 2 года назад
Great video 👏👏👏
@sairaj5660
@sairaj5660 3 года назад
Your videos are that bridge that transforms a person from an average developer to a 10X Developer, Thank you so much man ❤️
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
That is quite the compliment, thank you.
@vikram87in
@vikram87in 2 года назад
Such a clear and amazing video. Didn't even realise that it was 2 hrs long. Thanks a lot Jimmy 😍😍
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Thank you for the kind words. I'm happy it was useful.
@ruslanfreelancer7082
@ruslanfreelancer7082 Год назад
Never used webpack to build my projects so it looks a bit complicated for me. Thanks for the tutorial, some things became clearer now.
@zivtamary
@zivtamary 3 года назад
Amazing tutorial man, thank you! :)
@PabloMartinezfr
@PabloMartinezfr 3 года назад
I love this tutorial and your Channel, congrats!!!
@brod515
@brod515 3 года назад
@1:17:51 for windows users, use the npm package rimraf. instead of "rm -rf dist" use "rimraf dist"
@SatyendraSingh-zt1nh
@SatyendraSingh-zt1nh Год назад
It was help me thanks alot...
@brod515
@brod515 Год назад
@@SatyendraSingh-zt1nh no problem
@mikh218
@mikh218 3 года назад
Thank you for the webpack tutor! It would be so good to add the typescript at the end =)
@onlyformyselfcom
@onlyformyselfcom 3 года назад
Wow, thank you for this tutorial!!! Webpack is entirely new world for me and after this video, it works!!! I can't believe it :) PS: I am so fascinated, so this is the first video on RU-vid I have ever put a comment 🤞
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Well, then I am honored to have earned the first comment.
@jamieghoorbin4526
@jamieghoorbin4526 3 года назад
Thanks Jimmy! Great tutorial.
@Phreshie91
@Phreshie91 2 года назад
I stopped coding this time last year because of how lonely it can be for a person like me. I've been wanting to pick up the gauntlet again , and this video is one of the first resources I used to review. Just as valuable as the first time I watched it! 🙌🏾 I hope you don't get discouraged by the low subscriber count...this is serious one of the best resources I've ever come across! THANK YOU!!!
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Thank you for the kind words. I still plan on making more videos, I just had too much going on and needed a break.
@Phreshie91
@Phreshie91 2 года назад
@@SwashbucklingwithCode yay! Notifications are turned on...looking forward to more videos! 🏴‍☠️
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
@@Phreshie91 Thanks again for the support.
@flnnx
@flnnx Год назад
Very helpful. Thank you!
@paveldub2241
@paveldub2241 3 года назад
great job, dude! Thank you!
@ynorouzi
@ynorouzi 2 года назад
It saved my life. Thank you a lot
@kevinbeckwith3770
@kevinbeckwith3770 Год назад
Hey Jimmy, First, I want to say that this is a fantastic resource, I'm a complete newbie when it comes to webpack, and because of how clearly you explain what you're doing I'm having no trouble understanding it. For anyone interested you can type W100% to avoid getting pixels.
@edwardbaldacchino5284
@edwardbaldacchino5284 3 года назад
Awesome video, I've learned so much from it. In case anyone hasn't said it yet, publicPath just adds on to the path value in output (1:05:00)
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Fantastic to hear. And about publicPath, do you mean it is for appending more directories to place the CSS in?
@Gohel95
@Gohel95 3 года назад
Thanks, man for the lessons💖💕
@lahirukariyawasam7865
@lahirukariyawasam7865 Год назад
Great tutorial video. Thanks.
@gredev
@gredev 2 года назад
Amazing! You just solved one of my main problems man. Thanks a lot.
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Glad to help.
@gal88b
@gal88b 2 года назад
Thank you so much. This video is absolutely fantastic.
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Thanks for saying so, happy to help.
@sithmech3803
@sithmech3803 3 года назад
After hours of trying to fix my webpack woes by googling each problem, I stumbled upon your excellent video. I normally don't watch videos of this length, but you delivered clear and concise information in an incredibly engaging way. Thank you.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thanks for letting me know. Video length is tough, since a lot of time is required for topics like this. It's hard to know if a long video is going to be worth the investment.
@iamprincemuel
@iamprincemuel 2 года назад
@@SwashbucklingwithCode They'd just use the Pomodoro technique
@RyantheCanuckpirate
@RyantheCanuckpirate Год назад
@@SwashbucklingwithCode This is how I discovered your channel, so you've got at least 1 sub as a result of this tutorial. I'm brand new to module bundlers and copy/pasting the instructions isn't satisfying. It works, but I like to have a basic understanding of how my tools work so I can troubleshoot errors with less stress. Spending a few hours on learning webpack has definitely made my life easier, so thanks again
@joseortiz7239
@joseortiz7239 2 года назад
Excelente video, bien explicado. Gracias.
@luiscortes6563
@luiscortes6563 2 года назад
Thank you so much for this! I ran until a couple of “gotchas” that you mentioned and you dramatically reduced my downtime.
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Nice, glad it helped.
@who.is.jaytee
@who.is.jaytee 3 года назад
@ 42:06 thank god for this note about the browserslist file and the bug. I literally spent 2 days trying to figure out wtf was wrong with my live reload/hmr. I have my webpack.config set up a little differently but this explains it. 🙏
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
It got me good as well, so much so that I had to make a video just for solving it.
@TheRealFishGpMusic
@TheRealFishGpMusic Год назад
Thanks for this video , it was great!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Cool.
@markuskraft6059
@markuskraft6059 3 года назад
If you have problems deploying: If you are developing on Windows add cross-env and rimraf to your project. Then use "build": "cross-env NODE_ENV=production webpack", and "clean": "rimraf dist" to your package.json . I was going crazy because I did not keep in mind to check my platform(netlify is using a different shell)^^ Thanks for the nice Project Setup! I had a lot of fun following along.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thanks for helping, I wish I could edit something back in to the video but I have been so removed from Windows development that it slipped my mind during the making.
@tony-ma
@tony-ma 3 года назад
Awesome content!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you.
@IM_RajGupta31
@IM_RajGupta31 2 года назад
Super awesome tutorial
@Panchito007able
@Panchito007able 3 года назад
Thanks! Great tutorial.
@PeterFullen
@PeterFullen 3 года назад
I really appreciate these videos. This is the way they should be teaching React to beginners. Using create react app handcuffs some people. They do not understand how the code then gets bundled for production.
@user-ri5zr2rv1n
@user-ri5zr2rv1n 11 месяцев назад
thanks for your effort
@arjunsah8561
@arjunsah8561 Год назад
Thank you so much for these amazing contents on webpack 5. If you could add some videos of integrating Material UI and or tailwindcss and or bootstrap 4/5, That will re really amazing because it will literally cover almost everything.
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
I shall ponder on it when I start back up again. Thank you.
@ThomasPoppeBE
@ThomasPoppeBE 3 года назад
Great tutorial, well explained.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you.
@williamm200
@williamm200 Год назад
bruuu this rocks muchas Gracias !!!
@sanghunlee6825
@sanghunlee6825 2 года назад
OMG you save my life THANK U SOOOOOOOO MUCH!!
@patsionly
@patsionly 3 года назад
OMG! This was my best course ever, I don't know why this video has dislikes. I'm a Mexican speaker but you're too good to specify everything! Commonly, It's too hard for me to understand English but I don't know why I could understand everything you said in this video. Thx a lot!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Fantastic. I'm happy to hear it was easy to follow.
@bswill5077
@bswill5077 3 года назад
This is certainly a god's work. Thank you again.
@DarkzarichV2
@DarkzarichV2 2 года назад
Thank you for the video, was willing to dive into Webpack 5 understanding long ago. Previously I had some basic understanding which was enough to achieve whatever I needed and understand most of whatever I copy-pasted from docs and stuff but now I understand it much better! Though, still something is left out, would be cool if you could go into optimizations like separating the code by chunks and stuff
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Thank you. There are a ton of paths you can go down with Webpack usage, and my short term goal was just to raise familiarity with the basics for the many developers that use frameworks with webpack magic under the hood that they don't feel comfortable fidgeting with. code-splitting/chunks and tree-shaking, as well as library creating are things I intended to get into eventually but the time sync to do them correctly is quite high.
@subratopatnaik6361
@subratopatnaik6361 2 года назад
Liked & subscribed Awesome video. This is everything I need to learn about webpack 5. I'll share this video once I understand all the things that you have explained. 😋🙈
@suneetjena9788
@suneetjena9788 Год назад
5 mins into the video and I have subscribed him already !!
@SwashbucklingwithCode
@SwashbucklingwithCode Год назад
Thank you.
@akilkudil
@akilkudil 3 года назад
Awesome friend. I agree with others that you deserve at least 100 times more subscriptions. Thanks for the knowledge share.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I'm glad I could pass on some learnings, and even learn some new things in the making.
@TwanvB
@TwanvB 3 года назад
This is great! Im trying to understand webpack and your tutorial is really helpfull. Minor thing im able to add: you can set, clean: true, inside output. This will clean your dist folder without any extra plugins. Might save you some time.
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you. Someone else pointed this out as well but I haven't tried it out yet.
@danet9330
@danet9330 2 года назад
your advice is really priceless, thank you so much!
@nikhilkhatter4689
@nikhilkhatter4689 Год назад
@@danet9330 i tried and got a success on it as well, thank u.
@aaronvasilev2371
@aaronvasilev2371 3 года назад
Bro, you are the best❤️
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
Thank you.
@jonasgraae5311
@jonasgraae5311 3 года назад
Thanks for a great tutorial ! This really helped me to understand the images/assets with react, and pickup some other nice tricks. I have not been able to find that many videos with webpack 5, so you should really consider during a tutorial on udemy, with an extended version of this video and a beginners build project in React!
@SwashbucklingwithCode
@SwashbucklingwithCode 3 года назад
I'll definitely consider it. It's pretty tough keeping up with the videos as it is, so I'd probably have to take time off to pull that one off.
@normanejm
@normanejm 2 года назад
Thanks bro. 💪
@mohamedhany2539
@mohamedhany2539 2 года назад
Just as I wanted in one video. Thanks man Maybe in a future video, you would make a video about MPA "Multi-Page app" with Webpack 5. It will be great.
@aryansingh2105
@aryansingh2105 2 года назад
Haven't watched the video, although youtube recommended. I just wanna say dude you look DOPE 😎🤟🏻
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
Why thank you. Unfortunately the long hair is gone now, but I'll likely grow it back next winter.
@softtech3172
@softtech3172 2 года назад
thank you so much i really learned a lot from your channel thanks a lot
@SwashbucklingwithCode
@SwashbucklingwithCode 2 года назад
It's awesome reinforcement to hear this, so thank you for taking the time to let me know.
@mosherube7904
@mosherube7904 2 года назад
Great video! I've been struggling with webpack so this video has been a real light! I actually encountered no issues npm run building when running and using my image at first. I didn't even need to use the rules in webpack. But I still plugged in your code and it broke for the jfif images when I used asset inline. Idk if things have changed for images on webpack since this video came out.
Далее
Creating and Understanding a Basic Webpack 5 Setup
41:49
Webpack 5 CSS Walkthrough: Sass, PostCSS and more!
37:26
HUMAN BASKETBALL! 👀🏀🤣 | Triple Charm #Shorts
00:15
Learn Webpack - Full Tutorial for Beginners
1:53:01
Просмотров 380 тыс.
Streamline your repo workflow with Github CLI
12:52
Просмотров 3,1 тыс.
Webpack 5 and Typescript Project Setup Walkthrough
23:16
Login Form | HTML CSS
1:00
Просмотров 481 тыс.
Webpack 5 Full Course (Babel, PostCSS, npx, Node.js & npm)
1:28:22
How to get polyfills with Babel 7 and Webpack
25:57
Просмотров 12 тыс.
Webpack crash course | easy way
32:07
Просмотров 55 тыс.