Comments (4)
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.
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.
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.
challenge accepted! I'll make a PR of something
from webpack-flush-chunks.
Related Issues (20)
- webpack v5: missing dynamic chunks generated by `splitChunks` when chunk IDs are strings
- flushChunkNames is empty
- Duplicate CSS files while flushing HOT 2
- utils.js:50 chunk not available for synchronous require yet:
- Not work with webpack.NamedChunksPlugin or webpack-hashed-chunkids
- reference script file outside of webpack build
- Breaking changes between v1 and v2
- [FLUSH CHUNKS]: Unable to find pages-Home in Webpack chunks. Please check usage of Babel plugin. HOT 19
- Chunk dependencies not flushed when it's moved to a parent
- Questions about flushing and babel plugin
- t
- flushChunks not returns shared css between modules HOT 1
- 2.0.3 tag is missing from GitHub
- Removing LimitChunkCountPlugin: 1 for server HOT 3
- Pass through renderProps in the Component return API
- Raw CSS on development environment
- [FLUSH CHUNKS] warning with TSX, but not with JS
- @loadable/components support
- 52 Vulnerabilities in NPM modules
- [FLUSH CHUNKS]: Unable to find pages-Landing in Webpack chunks. Please check usage of Babel plugin.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-flush-chunks.