GithubHelp home page GithubHelp logo

lemo's Introduction

创建过程

通过脚手架初始化项目: create-react-app

yarn create-react-app my-app
cd my-app
yarn start

界面实现:antd 数据管理:mobx

2.其他相关 // 配置webpack 方法一: npm run eject (一旦运行不可回退),暴露出所有的配置文件 方法二: 重写webpack,首先安装yarn add react-app-rewired customize-cra([email protected] 以上版本),在根文件下创建config-overrides.js文件

const { override, addWebpackAlias } = require('customize-cra');
const path = require('path');

module.exports = override(
  // 页面路径绝对化
  addWebpackAlias({
      ["mock"]: path.resolve(__dirname, "src/mock"),
      ["containers"]: path.resolve(__dirname, "src/containers"),
      ["components"]: path.resolve(__dirname, "src/components"),
      ["assets"]: path.resolve(__dirname, "src/assets"),
      ["global"]: path.resolve(__dirname, "src/global")
  })
)

lemo's People

Contributors

bonnie-lu avatar

Watchers

 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.