
Nowadays, being able to use command line has become vital for frontend or JS developers. If you cannot use command line, then you cannot use any construction or bundling tools. This means you cannot work with any modern frameworks at all. Command line is actually very easy to learn, all you need to do is to overcome your fear of using it.
In this lesson, we will learn how to use NPM. NPM stands for node package manager. It is the world’s largest software registry. It helps us share and borrow codes. Being able to use NPM is vital for modern JS developers.
In this lesson, we will learn how to initiate a new package and install third-party ones using NPM.
In this lesson, we will show you how to use packages installed by NPM. You will also learn a new command: NPX.
In this lesson, we will give you a very detailed explanation of package version. You will know what is major version, minor version and patch version.
In this lesson, you will learn how to install babel 7. It is actually more complicated than you think. You need to install three development packages and one production package.
In this lesson, you will learn how to create the babel config file. You have three options.
In this lesson, we will show you the difference between babel.config.js and .babelrc.
Translating syntaxes alone is not enough. We also need to fill the current environment with missing APIs. This is calling Polyfilling. In Webpack, this is called shimming.
Babel preset is a collection of pre-installed and configured plugins. But the current preset may not always meet our demand. In this case, we need to add extra plugins. Watch this lesson to find out how.
We have completed our Babel study. In this lesson, we will review everything we have learnt.
In this lesson, we will show you how to install webpack and introduce to your webpack basic concepts.
In this lesson, we will show you how to create the webpack config file.
Webpack alone can only handle JS and JSON files. This is not enough. To handle other file types, we need loaders. In this lesson, you will learn two loaders: style loader and CSS loader. They can help us process CSS files.
In this lesson, we will show you how to use file loaders. You will also learn one of webpack's most challenging setting: publicPath.
Upgrade:
When I was recording this course, clean-webpack-plugin V2 has NOT been published. But now V2 has been published and NPM will install V2 as the default option.
https://github.com/johnagan/clean-webpack-plugin/issues/106
Clean-webpack-plugin V2 no longer needs ['dist'] anymore.
When you require the clean-webpack-plugin, you need to put it in a set of curly brackets like this:
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
This is destructuring assignment, please see lecture 55 for more details.
Plugins make Webpack more convenient to use by automating commonly used operations. In this lesson, we will show you how to use two plugins: clean-webpack-plugin and html-webpack-plugin. Watch this lesson to find out what they can do and how to use them.
In this lesson, we will show you how to turn on and configure webpack devServer. You will also learn how to HMR, hot module replacement.
In this lesson, we will show you how to "webpack" packages.
Tree shaking means removing unneeded codes before bundling. It can help lower the size of bundled files.
Setting sideEffects:false in package.json can help webpack better "shake the tree". Watch this lesson to find out more.
Production mode and development mode may often require very different settings. But they will also share lots of identical settings. In this case, we need to divide webpack.config.js into three files: prod.config.js, dev.config.js and common.config.js. Watch this lesson to find out more.
Using html-webpack-plugin, style loader and CSS loader, we can bundle a CSS file into HTML style tag. But what if we want to bundle css file into an independent CSS file and minify CSS codes in the bundled CSS file? Watch this lesson to find out how.
Entry files may share certain codes. Instead of loading the same codes repeatedly, we can split them and only load them once. This is called code splitting. Watch this lesson to find out how to split shared codes.
In this lesson, we will show you how to use on-demand loading. Code splitting is the foundation of on-demand loading. So before you start this lesson, make sure you have mastered everything taught in the last lesson.
In this lesson, you will learn how to "polyfill" using Webpack.
Shimming means adding new global APIs. For example, if we "shim" jQuery, then all files will automatically acquire access to jQuery, we do not have to link it int each JS file.
In this lesson, we will show you how to integrate Webpack with Babel using babel-loader. We can do bundling, syntax translation and polyfilling simultaneously. Watch this lesson to find out how!
Attention here, I did not install webpack-dev-server in this lesson.
This course covers four topics: command line, NPM, Babel 7 and Webpack 4.
This course is designed for absolute beginners.
You will start with command line and NPM.
Then you will learn Babel 7 and Webpack 4.
At the end, you will learn how to integrate Babel and Webpack using babel loader.
The main focus of this course is Webpack.
To help you master Webpack as soon as possible, your Webpack study is made of three stages.
Stage one covers all the basics you need to know about Webpack. Stage two teaches you how to create the most efficient bundled file. The last stage shows you how to integrate Babel and Webpack using babel loader.
At the end of each stage, there will be a review session and a practice session.
You will learn Theory first and then Apply and Practice everything you have learnt in a real project.
By the end of this course, you will "TAP" command line, NPM, Babel 7 and Webpack 4 ! " ^_^
Bonus section: CommonJS and ESM (ES6 import and export modules)
This course covers four topics: command line, NPM, Babel 7 and Webpack 4.
This course is designed for absolute beginners.
You will start with command line and NPM.
Then you will learn Babel 7 and Webpack 4.
At the end, you will learn how to integrate Babel and Webpack using babel loader.
The main focus of this course is Webpack.
To help you master Webpack as soon as possible, your Webpack study is made of three stages.
Stage one covers all the basics you need to know about Webpack. Stage two teaches you how to create the most efficient bundled file. The last stage shows you how to integrate Babel and Webpack using babel loader.
At the end of each stage, there will be a review session and a practice session.
You will learn Theory first and then Apply and Practice everything you have learnt in a real project.
By the end of this course, you will "TAP" command line, NPM, Babel 7 and Webpack 4 ! " ^_^
Bonus section: CommonJS and ESM (ES6 import and export modules)