trivago / parallel-webpack

Builds multi-config webpack projects in parallel
BSD 3-Clause "New" or "Revised" License
1.48k stars 96 forks source link

Unable to understand the documentation #97

Open skirankumar7 opened 5 years ago

skirankumar7 commented 5 years ago

Can someone explains me with some example how this plugin is useful I am not able to understand documentation was not able to understand given one example where two bundle files we will get then after how do we can combine those bundles

what is variants???

Please 🙏...

pago commented 5 years ago

This tool helps you to build different versions of your application at the same time. Imagine you'd want to have one bundle for modern browsers ("variant 1") and one that is compatible with IE11 ("variant 2") then by using this tool you'd be able to generate both of them at the same time.

Depending on your setup and system that can be faster. Not during development but on a CI/CD pipeline it can make a difference.

skirankumar7 commented 5 years ago

Thanks @pago Better to add this kind of description to the documentation so that everyone understands it better.

One question here I have is that how do we make bundles separately for based on the browser compatibility I mean what flexibility we can achieve with this, generally in the code we write like if this browser executes this code if another browser execute another code so that one bundle can handle everything but with this what is the use Could you explain to me with Sample example... Thank You.