Skip to content

Commit b63d178

Browse files
authored
Merge pull request #92 from asfktz/doc-opt-inherit
Document experimental config option 'inherit'
2 parents cda780b + e8642e2 commit b63d178

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,24 @@ module.exports = {
298298
]</pre>
299299
</td>
300300
</tr>
301+
<tr>
302+
<td>inherit</td>
303+
<td>Boolean/Function</td>
304+
<td><code>false</code></td>
305+
<td>
306+
Inherit from the parent config.
307+
A valid use-case would be if you have <code>devtool: "source-maps"</code> in your webpack config and wanted source maps to be created for the DLL bundle as well.
308+
However, this <strong>does not</strong> inherit plugins from the parent config and inheriting loaders are buggy too(see <a href="https://github.com/asfktz/autodll-webpack-plugin/issues/37">#37</a>).
309+
It can also be a function to inherit only the desired properties.
310+
<pre>function inherit(webpackConfig) {
311+
// Return object with desired properties.
312+
}
313+
</pre>
314+
To see it action, <a href="https://github.com/asfktz/autodll-webpack-plugin/tree/master/experiments/inherit">check out the example</a>.
315+
<br>
316+
<strong>⚠️ This option is highly experimental! Use with caution and if you face any problems, please open a issue.<strong>
317+
</td>
318+
</tr>
301319
</tbody>
302320
</table>
303321

0 commit comments

Comments
 (0)