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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bottom #4

Closed
Mobilpadde opened this issue Aug 25, 2018 · 6 comments
Closed

Bottom #4

Mobilpadde opened this issue Aug 25, 2018 · 6 comments
Labels
enhancement New feature or request

Comments

@Mobilpadde
Copy link

Would it be possible to show in the bottom of everything? I have to scroll up to see the result 馃憥

Other than that, great plugin! 馃憤

@developit
Copy link
Collaborator

Good idea! I have to look into the timing there. I actually think it might be partially based on where in your plugins list it gets placed! Haha.

@developit developit added the enhancement New feature or request label Aug 27, 2018
@DorianGrey
Copy link

Suppose it would be better to use the done hook instead of afterEmit. Several plugins for formatting build stats output are using done, thus all of them would print their output after the one from this plugin.

@developit
Copy link
Collaborator

@DorianGrey Hmm - does that hook pass the compilation instance like afterEmit does? If so it'd be a trivial change.

@DorianGrey
Copy link

No, but it provides the stats object - see docs: https://webpack.js.org/api/compiler-hooks/#done
The compilation instance is still available on that object, but it also provides simpler ways to access the asset stats information.
Something like:

stats.toJson({}, true).assets

I'm currently using this hook in a more complex display plugin, and it works fine.

@agorilla
Copy link

Any update on this?

Would be a very useful feature to place the stat output at the end.
I'm using Webpack 4 and regardless where I place the plugin inside the plugins array it gets printed out right at the top.

@developit
Copy link
Collaborator

Fixed in 3.0.0.

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

No branches or pull requests

4 participants