React Webpack Babel Setup From Scatch - 2020 React.js Tutorial

preview_player
Показать описание
How to set up a complete React JS project from scratch. Using webpack and babel. I also show you how to add additional useful loaders such as file-loaders to import images, scss loaders to use scss and compile it into scss. I also show you how to make builds for multiple environment with environment variables.

Regex used in video:
/\.(js|jsx)$/
/\.html$/
/\.(png|jpe?g|gif)$/i
/\.s[ac]ss$/i
/\.(js|jsx|ts|tsx)$/

{
"compilerOptions": {
"target": "es5",
"sourceMap": true,
"lib": [
"dom",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": false,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"jsx": "react",
"removeComments": true
}
}

Рекомендации по теме
Комментарии
Автор

You explained me in half hour better than several Udemy courses in 40hours :D keep it up man, fantastic!

daliborpetric
Автор

The best tutorial for Babel and Webpack config

ДмитрийЕльчищев-бу
Автор

Great video! Really enjoyed it.
When working with
webpack: ^5.2.1,
webpack-cli: ^4.1.0 and webpack-dev-server: ^3.11.0
you have to run your dev server via webpack serve instead of webpack-dev-server to avoid errors, dont know why

lethalbryan
Автор

This is THE BEST reactjs webpack babel configuration tutorial that I 've watched on youtube!!!! Thank you so much dude :D

anastasiosarvanitis
Автор

Amazing yes. All I needed too . Well done

Seb
Автор

The best tutorial for Babel and Webpack config. Thanks!

davidam
Автор

This channel content is very unique. Keep it up.

kailashuniyal
Автор

Thanks man ! really helpfull. Can you explain why you are not using the style-loader?

beckyb
Автор

Great stuff man looking forward to this a

RedVelocityTV
Автор

Error: Cannot find module
solution: change the script "start": "webpack-dev-server" to "start": "webpack serve"

mayowdev
Автор

It was an amazing and helpful tutorial. BTW, I'd like to see coding by VS Code please use it if you don't mind

meisammofidi
Автор

Messy webpack setup, was hoping to see more TS

tonyxavier
Автор

Really good content here, I am glad I found your channel. I am new in FrontEnd development, can you, please explain, how is this different then creating a React project using create-react-app?

mihaimyh
Автор

im still watching the video, but im wondering why are u installing react and react-dom as dev Dependencies?

augustosantos
Автор

LOL you can simplify your video by writing create-react app and save fucking 20 minutes

timzeynalov