Closed ArcherDs closed 6 years ago
Hi! With Neutrino 8 (which uses webpack 3), the vendor handling isn't fully automatic. Neutrino does configure the various plugins required to get chunking working, but it also needs a fake vendor
entrypoint to be defined in your .neutrinorc.js
, which specifies which packages you'd like to be moved into the vendor chunk. See:
https://neutrino.js.org/packages/react/#vendoring
Note that with webpack 4's new optimization.splitChunks
feature this manual step won't be required. PR #809 is open to switch Neutrino to webpack 4, and is expected to be part of Neutrino 9.
Thank you all for your quick and helpful response.
You're welcome! :-)
this is my config file:
I can't find out how to configure the chunk middleware to use the vendor-chunk plugin automatically create the vendor . Can anyone help?