-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use glob patterns with chunk names? How to preload specific chunks? #5
Comments
@milky2028 did you find any solution? |
@morr Unfortunately I did not. My solution was to switch to Rollup and use that for my entire build. Much easier to work with. |
@milky2028 Well, I already found solution. Here is my working example config.plugin('preload').tap(options => {
options[0].include = {
type: 'allChunks',
chunks: ['app', 'chunk-vendors', 'landing', 'landing-styles']
};
return options;
}); Chunks filtering is done by the function https://github.com/vuejs/preload-webpack-plugin/blob/master/src/lib/extract-chunks.js#L51 So I run |
Not sure if this can solve your problem but in case anyone needs it, here's the config that can include everything then use
|
I'm attempting to preload initial chunks, as well as some worker scripts using webpack chain in Vue, but I'm struggling to get it to work. Is there something I'm missing here?
The text was updated successfully, but these errors were encountered: