Giter Site home page Giter Site logo

codeyu001 / webpack-eslint-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from selinayu/webpack-eslint-react

0.0 0.0 0.0 6.36 MB

使用webpack搭建react项目,并利用eslint检查代码质量

License: MIT License

JavaScript 99.01% CSS 0.36% HTML 0.63%

webpack-eslint-react's Introduction

webpack-eslint-react

介绍

使用webpack搭建react项目,并利用eslint检查代码质量。

master 分支可用来结合其他框架如dva等,进行扩展。

webpack-eslint-react-redux 分支,使用了redux框架管理状态,react-router控制路由,antd 控制样式,开箱即用,想了解更多可以查看该分支

准备

安装 npm 或者 yarn

使用规则

安装依赖包

yarn install // 或者npm install

本地开发构建

yarn start

生产打包

yarn build

浏览器输入地址

http://localhost:9090/

分支 webpack-eslint-react-redux 生产环境下需要配置nginx, 配置如下

    server {
        listen     9091;
        server_name  localhost;
        location / {
            root path/to/your/project/dist;
            index  index.html index.htm;
            try_files $uri /index.html;
        }
        location /api {
            proxy_pass http://127.0.0.1:9090;
        }
    }

webpack-eslint-react's People

Contributors

selinayu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.