Code Monkey home page Code Monkey logo

Comments (4)

faceyspacey avatar faceyspacey commented on July 28, 2024

just import node_modules/dist/flushChunks.js directly, and u will get everything except all the pre-created strings and react components. U may have to do the following line manually:

https://github.com/faceyspacey/webpack-flush-chunks/blob/master/src/createApiWithCss.js#L138

:)

good luck. let me know how it goes and what ur using it for.

from webpack-flush-chunks.

faceyspacey avatar faceyspacey commented on July 28, 2024

crap, im an asshole, that wont work. i thought it was something else i had done. ..cuz yea it will import the createApiWithCss file just the same.

from webpack-flush-chunks.

faceyspacey avatar faceyspacey commented on July 28, 2024

basically flushFiles will do what you want in a lower level way:

https://github.com/faceyspacey/webpack-flush-chunks/blob/master/src/flushChunks.js#L85

the problem it its in the same file.

basically, a PR would have to be made to re-arrange things so you can do the import like I initially suggested.

Another way if ur using webpack is just to alias react to nothing, and just use flushFiles, which won't in fact call createApiWithCss.

from webpack-flush-chunks.

bsunderhus avatar bsunderhus commented on July 28, 2024

challenge accepted! I'll make a PR of something

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.