-
用webpack 打包
因为我们没有全局安装webpack 所以要用到这条命令
-
创建html
npm install --save-dev html-webpack-plugin
3.babel 使用es6
yarn add [email protected] [email protected] [email protected] --dev
4.react 的处理
yarn add [email protected] -- --dev
5.安装react
yarn add react react-dom
6.css
yarn add [email protected] [email protected] --dev
rules: [
{
test: /\.css$/,
use: [{ loader: 'style-loader' }, { loader: 'css-loader' }],
},
];