Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

423cc/webpack-react-spa

Repository files navigation

webpack-react-spa

Webpack for spa project.

get-started:

git clone https://github.com/afeiship/webpack-react-spa.git
npm install
npm run dev

simple interface:

  • nx.$app
  • nx.$memory
  • nx.$local
  • nx.$session

deploy:

## start
cd webpack-react-spa
git pull
./deploy/production/start.sh
## check status:
docker ps
## kill
docker kill a359c42986c6

feature:

  • spa
  • react 16+
  • webpack 4.x
  • next-redux-base
  • image compress
  • fonts/images to folder
  • react-router v4
  • HtmlWebpack -> webpack favico.ico
  • ant-design optmize
  • react hmr
  • add serviceworker for app cache
  • use eslint + prettier
  • use router config
  • add dynamic import + react-imported-component

todos:

  • deploy dev/test/prd with docker
  • react hmr remove /User/xx/index.js info (NODE_ENV=development/production)
  • http when error
  • token/without token interface
  • remove build warings

some package shell:[MAC USER: use gnu-tar but not bsd-tar]

tar zcf my-project-name.tgz dist/ --transform s/dist/my-project-name/

resources:

About

React single page app based on webpack.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.9%
  • CSS 7.3%
  • HTML 4.7%
  • Shell 2.1%

AltStyle によって変換されたページ (->オリジナル) /