Giter Club home page Giter Club logo

Comments (10)

alexander-akait avatar alexander-akait commented on June 8, 2024

Feel free to send a fix to docs, just use devMiddleware.context.stats

from webpack-dev-middleware.

MDAkramSiddiqui avatar MDAkramSiddiqui commented on June 8, 2024

This is what I am saying cannot use stats via this devMiddleware.context.stats as context is undefined.

from webpack-dev-middleware.

alexander-akait avatar alexander-akait commented on June 8, 2024

@MDAkramSiddiqui When you try to get this? Becaue it can be undefined if no builds happend

from webpack-dev-middleware.

MDAkramSiddiqui avatar MDAkramSiddiqui commented on June 8, 2024

Talking about this line, devMiddleware is context itself, @alexander-akait

(res.locals).webpack = { devMiddleware: context };

from webpack-dev-middleware.

alexander-akait avatar alexander-akait commented on June 8, 2024

Do you have middleware after webpack-dev-middleware? Anyway can you create minimum reproducible test repo, because I can't undestand there is place where you try to get it, thank you

from webpack-dev-middleware.

MDAkramSiddiqui avatar MDAkramSiddiqui commented on June 8, 2024

yes, I have a middleware after webpack-dev-middleware where I read assets, for that I am reading devMiddleware.stats.
I am not saying it is a bug, just that readme doc is not correct as per this line of code.

from webpack-dev-middleware.

alexander-akait avatar alexander-akait commented on June 8, 2024

Oh, I see, do you want to send a PR with fix?

from webpack-dev-middleware.

MDAkramSiddiqui avatar MDAkramSiddiqui commented on June 8, 2024

cannot raise a PR, getting error that I don't have permission.

from webpack-dev-middleware.

alexander-akait avatar alexander-akait commented on June 8, 2024

You need fork firstly, then send a PR to your fork and then go to PR requests and send it

from webpack-dev-middleware.

MDAkramSiddiqui avatar MDAkramSiddiqui commented on June 8, 2024

thanks, have raised the PR #1485

from webpack-dev-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.