#react-yp
npm short notations:
- i: install
- -D: --save-dev
- -S: --save
- for js packing: npm i webpack -D
- for dev server: npm i webpack-dev-server -D
- for config splitting: npm i webpack-merge -D
- for babel: npm i babel-loader babel-core -D
- for presets of babel: npm i babel-preset-es2015 babel-preset-react -D
- for react: npm i react react-dom -S
- React Router: npm i -S react-router
- history: npm i -S history
- redux: npm i -S react-redux
- react-router-redux: npm i -S react-router-redux
我特么真是郁闷死了,找了好几本关于webpack的书,一个个的写的那都是啥?不能运行,缺少配置,解释不明,都特么写过的书不自己看么?
Webpack官网的文档也写的那么晦涩难懂,真操蛋。