-
Notifications
You must be signed in to change notification settings - Fork 363
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
Webpack v4 plugin support #240
Comments
Haven't even looked at this yet, but guessing we'll need something analogous to: https://github.com/FormidableLabs/webpack-stats-plugin/blob/master/lib/stats-writer-plugin.js#L60-L66 apply(compiler) {
if (compiler.hooks) {
compiler.hooks.emit.tapPromise("stats-writer-plugin", this.emitStats.bind(this));
} else {
compiler.plugin("emit", this.emitStats.bind(this));
}
} |
FYI a plugin I maintain started giving the webpack/webpack@7dd41b5#diff-5d04086b4365820a456acec22b899956 |
Is this bug going to be looked at further? It's been broken for several months now and essentially makes this entire repo deprecated, since the webpack community has basically fully migrated to webpack v4. |
Yes, I've been working on the In the meantime @IamCarbonMan , we'd be open to a stop-gap PR to adjust the plugin hooks for webpack@v4 compatibility. ( Note: that this would only make webpack-dashboard not raise the deprecation warning, it doesn't help with code sections found issues because of the new bundle structure in webpack4 that our work on new inspectpack will address). |
I'll try and submit something just to make things work for now. Hopefully the underlying stuff works out before too long. |
mark |
@IamCarbonMan, I can put in a PR if you don't have time to get one in. Just don't want to work on one if you've started it already. |
HI Folks, I've actually just started working on this a day ago as inspectpack@3 is almost ready (one more feature PR and should be good to go -- it's been in a private repo, hence lack of visibility). I'll take this on as part of part of the integration of the new inspectpack. It may still be a week or two depending on my free time, but this is literally what I'm working on now, so thanks all around for your patience. (As a helpful teaser, the new inspectpack has way fewer dependencies (no binary deps anymore), is tested for all webpack versions 1-4, and is way, way, way faster). |
…249) This is a major update to `webpack-dashboard` with breaking changes. And a lot of speed and coolness. ## Breaking changes - Requires node6+. - Use the webpack internal stats object instead of real bundles. This is faster and with less futzing / parsing on the dashboard's end. Should permanently fix the `no code sections` found errors. - We've removed command flags / plugin options that no longer apply like `--root`, etc. ### Modules - Removed `min` and `min+gz` estimated file sizes from modules outputs. This dramatically speeds up the dashboard and reduces CPU usage. ### Versions - Version skews should be detected more accurately and much faster thanks to dramatically improved heuristics from `inspectpack`. ### Duplicates - Duplicates now reports on duplicate files that are (1) completely identical, and (2) the same package name and file path but with different sources. The first are low hanging fruit for optimizations in your build -- you've literally got the same thing multiple times. The latter needs to be coalesced at the package dependency level -- something the versions output can help with. ## Issues - Upgrade hooks to work in webpack1-4 with abstraction. Fixes #240 ## Refactoring - Switch from `chalk` to using Blessed's built-in tags for coloring. This is definitely the way to go as things like table spacing don't work with chalk strings and work like a charm with Blessed tags. - Update dependencies and remove lots of unused things (like `lodash`, `chalk`, `bluebird` and a whole lot of `babel*` that apparently wasn't used anyways). - New `inspectpack` is way slimmer and faster, with no more binary dependencies! - Switch to yarn-only workflow in dev. - Bump Travis node versions.
I'm seeing these deprecation warnings when running webpack-dashboard in webpack v4 with
process.traceDeprecation = true;
in my webpack config:I'm also seeing a lot of
Worker error Error: No code sections found
but I see that is being discussed in #234.====================================================================
Steps to reproduce the problem
Add
new DashboardPlugin()
to plugins in webpack v4.====================================================================
More Details
OS X 10.12
iTerm 2
1.1.1
echo $TERM
?xterm-256color
The text was updated successfully, but these errors were encountered: