2015-03-25 13:57:09 +08:00
|
|
|
# Contributing
|
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
From opening a bug report to creating a pull request: every contribution is
|
|
|
|
appreciated and welcome. If you're planning to implement a new feature or change
|
|
|
|
the api please create an issue first. This way we can ensure that your precious
|
|
|
|
work is not in vain.
|
|
|
|
|
|
|
|
## Issues
|
|
|
|
|
2015-03-27 16:02:11 +08:00
|
|
|
Most of the time, if webpack is not working correctly for you it is a simple configuration issue.
|
2015-03-25 13:57:09 +08:00
|
|
|
|
|
|
|
If you are still having difficulty after looking over your configuration carefully, please post
|
|
|
|
a question to [StackOverflow with the webpack tag](http://stackoverflow.com/tags/webpack). Questions
|
|
|
|
that include your webpack.config.js and relevant files are more likely to receive responses.
|
|
|
|
|
|
|
|
**If you have discovered a bug or have a feature suggestion, feel free to create an issue on Github.**
|
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
## Contributing to the webpack ecosystem
|
|
|
|
|
2015-05-23 04:06:56 +08:00
|
|
|
If you have created your own loader/plugin please include it on the relevant
|
2015-03-25 22:50:35 +08:00
|
|
|
documentation pages:
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
[List of loaders](https://webpack.github.io/docs/list-of-loaders.html)
|
2015-07-21 06:29:53 +08:00
|
|
|
[List of plugins](https://webpack.github.io/docs/list-of-plugins.html)
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
## Setup
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
```bash
|
|
|
|
git clone https://github.com/webpack/webpack.git
|
|
|
|
cd webpack
|
2016-10-12 15:13:37 +08:00
|
|
|
npm install -g yarn
|
|
|
|
yarn install
|
|
|
|
yarn link
|
|
|
|
yarn link webpack
|
2016-05-29 00:08:06 +08:00
|
|
|
```
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
To run the entire test suite use:
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
```bash
|
2016-10-12 15:13:37 +08:00
|
|
|
yarn test
|
2016-05-29 00:08:06 +08:00
|
|
|
```
|
2015-03-25 13:57:09 +08:00
|
|
|
|
2016-05-29 00:08:06 +08:00
|
|
|
## Submitting Changes
|
2015-03-25 22:50:35 +08:00
|
|
|
|
|
|
|
After getting some feedback, push to your fork and submit a pull request. We
|
|
|
|
may suggest some changes or improvements or alternatives, but for small changes
|
|
|
|
your pull request should be accepted quickly.
|
2015-03-25 13:57:09 +08:00
|
|
|
|
|
|
|
Some things that will increase the chance that your pull request is accepted:
|
|
|
|
|
2015-03-25 22:50:35 +08:00
|
|
|
* Write tests
|
|
|
|
* Follow the existing coding style
|
2015-03-25 13:57:09 +08:00
|
|
|
* Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
|
2016-05-29 00:08:06 +08:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
webpack is insanely feature rich and documentation is a huge time sink. We
|
|
|
|
greatly appreciate any time spent fixing typos or clarifying sections in the
|
|
|
|
documentation.
|