Skip to content

这是一个基于react的脚手架项目,主要是由react16+react-router-dom4+mobx+ mobx-react+less+axios+webpack4搭建

Notifications You must be signed in to change notification settings

NikFranki/react-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react react-dom react-router-dom mobx mobx-react less axios webpack

尝试特性,从”新“开始

这是一个基于 webpack + react + react-router-dom + mobx + mobx-react 搭建的项目

安装

可以运用yarn管理工具

yarn install
或者
npm install

开发环境

yarn dev
或者
npm run dev

生产环境

yarn prod
yarn build
或者
npm run prod
npm run build

目录结构

react-webpack
|   yarn.lock yarn记录的依赖版本号
│   README.md 说明
│   package.json 项目依赖
|   .babelrc 项目插件配置
│
└───config webpack打包配置
│   │   webpack.config.dev.js  开发环境配置
│   │   webpack.config.prod.js 生产环境配置
|   |   webpackDevServer.config.js 挂载服务器配置
│
└───dist 打包出来的文件
|    |
|    │   index.html
|    │
|    └───static
|    |   │
|    |   └───css
|    |   │
|    |   └───js
|    |   |
|    |   └───media
|
└───node_modules 项目依赖
|
└───public
|   |
|   └───index.html 模板文件
|
└───src
|   |
|   └───assets 静态文件
|   |
|   └───components 公用组件
|   |
|   └───containers 容器组件
|   |
|   └───routes 路由
|   |
|   └───store 状态数据
|   |
|   └───styles 公用样式
|   |
|   └───utils 工具
|   |
|   └───views 业务组件

效果

image

License

MIT (c) 2018

About

这是一个基于react的脚手架项目,主要是由react16+react-router-dom4+mobx+ mobx-react+less+axios+webpack4搭建

Resources

Stars

Watchers

Forks

Packages

No packages published