Skip to content

Commit

Permalink
fix: add ExcludeModulePlugin info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mzgoddard committed Jun 13, 2018
1 parent dca2fcb commit 8b9194d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,33 @@ new HardSourceWebpackPlugin({
}),
```

Some further configuration is possible through provided plugins.

```js
plugins: [
new HardSourceWebpackPlugin(),

// You can optionally exclude items that may not be working with HardSource
// or items with custom loaders while you are actively developing the
// loader.
new HardSourceWebpackPlugin.ExcludeModulePlugin([
{
// HardSource works with mini-css-extract-plugin but due to how
// mini-css emits assets, assets are not emitted on repeated builds with
// mini-css and hard-source together. Ignoring the mini-css loader
// modules, but not the other css loader modules, excludes the modules
// that mini-css needs rebuilt to output assets every time.
test: /mini-css-extract-plugin[\\/]dist[\\/]loader/,
},
{
test: /my-loader/,
include: path.join(__dirname, 'vendor'),
},
]),
]
```


## Options

### `cacheDirectory`
Expand Down

0 comments on commit 8b9194d

Please sign in to comment.