Skip to content
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

[DISCUSSION] Reporter Plugin parameters #2

Closed
misterdev opened this issue Jun 5, 2019 · 2 comments
Closed

[DISCUSSION] Reporter Plugin parameters #2

misterdev opened this issue Jun 5, 2019 · 2 comments

Comments

@misterdev
Copy link
Owner

The current option schema for the reporter plugin is:

new ReporterPlugin({
  hooks: {
    default: true, // include all default hooks
    default: false, // exclude all default hooks
    "compilation.done": true, // include this hook
    "compilation.emit": false, // exclude this hook
    "compilation.buildModule": 5, // trigger once every 5
    "compilation.contentHash": "2ms", // trigger every 2ms
  },
  reporters: [ new Reporter() ]
});

Open to discussion 🔥 🎆 (<- this is a firework, probably worst emoji ever)

@ematipico
Copy link

I thinks

new ReporterPlugin({
  hooks: {
    default: true, // include all default hooks
    default: false, // exclude all default hooks
    compilation: {
		done: true,
		buildModule: 5
	}
})

Is a better fit. And easier to create TypeScript types.

@misterdev
Copy link
Owner Author

Yeah, looks good to me, thanks!! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants