Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fakefish/react-webpack-cookbook
React 和 Webpack 小书
https://github.com/fakefish/react-webpack-cookbook
Last synced: 3 months ago
JSON representation
React 和 Webpack 小书
- Host: GitHub
- URL: https://github.com/fakefish/react-webpack-cookbook
- Owner: fakefish
- Fork: true (survivejs/webpack-book)
- Created: 2015-07-08T16:03:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-21T12:29:21.000Z (almost 8 years ago)
- Last Synced: 2024-07-15T18:04:59.427Z (4 months ago)
- Language: JavaScript
- Homepage: https://fakefish.github.io/react-webpack-cookbook/
- Size: 6.31 MB
- Stars: 271
- Watchers: 16
- Forks: 50
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-webpack-cookbook - A cookbook for using Webpack with React JS.
> [Go to cookbook](https://christianalfoni.github.io/react-webpack-cookbook/)
> [中文版](https://fakefish.github.io/react-webpack-cookbook/)
## Contributing
If you notice something to improve, the easiest way to do that is to
1. Fork this repo
2. Set up a branch
3. Make the changes (see `/content`)
4. Submit a PRSo all in all it's just a regular GitHub PR flow.
Alternatively you can [open an issue](https://github.com/christianalfoni/react-webpack-cookbook/issues/new) and we'll look into it.
Note that `gh-pages` branch and wiki content gets generated based on the main repository content.
## Gitbook Generator
The generator converts the wiki content to Gitbook (standalone site). In this case it is pushed to `gh-pages`. Use it as follows:
1. `npm install`
2. `npm run generate-gitbook`This should generate `/gh-pages`. You can serve that directory through some static server (ie. hit `serve` at `/gh-pages`).
It is possible to deploy the book by hitting `npm run deploy-gitbook`. This will update `gh-pages` branch.