We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ec5ec commit e26dd35Copy full SHA for e26dd35
src/index.js
@@ -49,11 +49,16 @@ export default class {
49
jsdocConfig: {},
50
jsdocHtmlConfig: {},
51
jsdocTsdConfig: {},
52
+ productionOnly: true,
53
...options,
54
}
55
56
57
apply(compiler) {
58
+ if (this.options.productionOnly && compiler.options.mode !== "production") {
59
+ return
60
+ }
61
+
62
compiler.hooks.afterPlugins.tap(webpackId, () => {
63
compiler.hooks.publishimoGeneratedPkg?.tapPromise(webpackId, async publishimoResult => {
64
this.publishimoPkg = publishimoResult.generatedPkg
0 commit comments