Skip to content

ldsyzjb/react-demo-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Demo 模板项目

  1. 安装 webpack

    npm i -D webpack webpack-cli webpack-dev-server

  2. 安装 babel

    npm i -D babel-loader @babel/core @babel/preset-react @babel/plugin-proposal-class-properties

  3. 安装 eslint

    npm i -D eslint babel-eslint eslint-config-standard eslint-config-standard-react eslint-loader eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard

  4. 安装 scss loader

    npm i -D node-sass sass-loader css-loader mini-css-extract-plugin

  5. 安装 html 插件

    npm i -D html-webpack-plugin

  6. 安装 react

    npm i -S react react-dom

  7. 配置 webpack

  8. 配置 eslint
    用 babel-eslint 作为解析器
    使用 standard、react-standard 作为默认配置
    启用 JSX

淘宝源 https://registry.npm.taobao.org

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published