How to make use of the webpack configuration defaults in a plugin context #13387
-
|
I like the concept of "sensible defaults" used in webpack, which helps to write less, relying on conventions. But right now I can't come up with an easy solution for getting those in the context of webpack plugin. Let's say we have a plugin that uses What will be the simplest way of getting this value in the plugin, assuming that webpack@5 users can omit setting output.path value if it's equal to Should I also provide this convention in my plugin by hardcoding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.


compiler.outputPathhttps://github.com/webpack/webpack/blob/master/types.d.ts#L1818