webpack (1)

  1. node_modules/.bin/webpack

    用webpack 打包

    因为我们没有全局安装webpack 所以要用到这条命令

  2. 创建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' }],
    },
  ];

 

猜你喜欢

转载自www.cnblogs.com/guangzhou11/p/10668149.html