Skip to content

Improve Plugin Documentation #1254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 29, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs(plugins): make minor corrections to loader-options-plugin
  • Loading branch information
skipjack committed May 29, 2017
commit 80c500b697f0eb6595de264574ec3e8384dcbccc
6 changes: 3 additions & 3 deletions content/plugins/loader-options-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ contributors:
- skipjack
---

The `LoaderOptionsPlugin` is unlike other plugins in that it is built for migration from webpack version 1 to version 2. In webpack v2, the schema for a `webpack.config.js` became stricter; no longer open for extension by other loaders and plugins. The intention is that you pass `options` directly to loaders and plugins (i.e. `options` are __not__ global or shared.
The `LoaderOptionsPlugin` is unlike other plugins in that it is built for migration from webpack version 1 to version 2. In webpack v2, the schema for a `webpack.config.js` became stricter; no longer open for extension by other loaders and plugins. The intention is that you pass `options` directly to loaders and plugins (i.e. `options` are __not__ global or shared).

However, until a loader has been updated to depend upon options being passed directly to them, the `LoaderOptionsPlugin` exists to bridge the gap. You can configure global loader options with this plugin and all loaders will receive these options.

Expand All @@ -15,7 +15,7 @@ new webpack.LoaderOptionsPlugin({
})
```

W> This plugin may be removed in the future as it only exists for migration.
W> This plugin will be removed in the future as it only exists for migration.


## Options
Expand All @@ -31,7 +31,7 @@ This plugin supports the following options:

## Usage

Here's a simple example of how this plugin might be used:
Here's an example of how this plugin might be used:

```javascript
new webpack.LoaderOptionsPlugin({
Expand Down