Code Monkey home page Code Monkey logo

Comments (3)

swernerx avatar swernerx commented on June 27, 2024

I was wondering whether this is related to: asfktz/autodll-webpack-plugin#23

from webpack-flush-chunks.

faceyspacey avatar faceyspacey commented on June 27, 2024

It is, and I researched it to attempt to do a PR to the autodll package--basically Webpack has it planned for the future to allow plugin authors to add to stats. Currently we cannot--unless I'm missing something.

So the chunk created by autodll won't be in stats.assetsByChunkName, and there's nothing we can do about it. You just gotta append it to the page manually like we always have done.

Feel free to add it to the readme as a PR.

The challenge with the setup I've proposed through these tools is that no matter which way you slice it, it requires lots of setup/configuration. That's the price we pay for frameworkless flexibility vs. something like Next.js.

Basically, the notes on webpack "externals" is the beginning of a troubleshooting.md. I'm not sure if the entire webpack configuration docs should go there, but probably things like the hashed/named module ids stuff should go there as well. We're gonna need a complete list of "gotchas" and configuration requirements in one place.

Webpack Flush Chunks fyi will be renamed universal-render. I already own the npm package. There's a lot more coming out. Any help is much appreciated to bring this all together.

Also note, as everything comes together under the universal-render umbrella it will simplify many things. So we will achieve soon enough the best we can in frameworkless npm/react/webpack land.

from webpack-flush-chunks.

faceyspacey avatar faceyspacey commented on June 27, 2024

There's a note added to the readme:

https://github.com/faceyspacey/webpack-flush-chunks#autodllplugin

If there's more you feel should be said, go for it.

from webpack-flush-chunks.

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.