建立React的有用的Webpack的相关知识

安装Webpack

npm i webpack webpack-cli -D

 

安装Babel

npm install babel-core babel-loader babel-preset-es2015 webpack --save-dev

 

https://medium.freecodecamp.org/part-1-react-app-from-scratch-using-webpack-4-562b1d231e75