Laravel-mix: Laravel-mix & common chuncks plugin

Created on 31 Mar 2017  路  3Comments  路  Source: JeffreyWay/laravel-mix

So everything is working perfectly but my project has a lot of javascript wich made me consider using the common chuncks pluign.

I've been searching all over the web for a answer on how to use it with laravel-mix(without trying to modify to much in the webpack.config.js file), but without result.
So the question is how would one use the "webpack common chuncks plugin" with laravel / laravel-mix, if even possible

Thanks

Most helpful comment

https://github.com/JeffreyWay/laravel-mix/blob/master/docs/extract.md

Can this document help you? You can extract some third-part libraries in a vendor.js file. @mementoneli

All 3 comments

https://github.com/JeffreyWay/laravel-mix/blob/master/docs/extract.md

Can this document help you? You can extract some third-part libraries in a vendor.js file. @mementoneli

We already use the common chunks plugin internally.

Yes, but , you still did not answer my question, I know how to extract the vendor etc... but I need to make chuncks of the main javascript files , so I can lazy-load them after the required javascript has been loaded.

Anyways thanks for trying to help tinyong90

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Micaso picture Micaso  路  3Comments

jpmurray picture jpmurray  路  3Comments

rlewkowicz picture rlewkowicz  路  3Comments

tillkruss picture tillkruss  路  3Comments

pixieaka picture pixieaka  路  3Comments