Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Question: Vendor file #2

Open
dbabaioff opened this issue Dec 17, 2016 · 1 comment
Open

Question: Vendor file #2

dbabaioff opened this issue Dec 17, 2016 · 1 comment

Comments

@dbabaioff
Copy link

If I'm splitting my js files into 2 groups - one is the vendor file and the other is the app bundle - can I still use this repo?
Is possible to add async tag to both script tags? If yes, how the browser will choose which one to load first?

Thanks!

@PatrickJS
Copy link
Member

This would require more work on webpack. The problem you rub into is not knowing when vender bundle file is done before invoking main bundle. I request that to be on by default in webpack 3 so it won't be a problem in the future. There are a couple of plugins to help with this too

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants