Skip to content

mjzhang1993/webpack-react-template

Repository files navigation

webpack-template webpack react项目模板

重要文件版本

  • "react": "^15.4.2",
  • "react-router": "^3.0.2",
  • "redux": "^3.6.0",
  • "webpack": "^2.2.1",
  • "react-hot-loader": "^3.0.0-beta.6",

最新模板 react-router4 webpack3 看这里

1.编译并生成开发版本

npm run dev

2.输出生产版本

npm run build

3.本地运行开发版本

npm run run

  • 2.服务器地址在 webpack -- API.js 中配置,另外生产版本需要添加 output.publicPath

About

webpack2、 HMR、react、redux、react-router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages