Laravel-mix: Question: Is it possible to dump the final webpack config?

Created on 28 Dec 2017  路  3Comments  路  Source: JeffreyWay/laravel-mix

When using laravel-mix with 3rd party plugins, if I run in to an issue is there a way to extract the webpack config to show them?

Most helpful comment

You can also use:

mix.dump()

All 3 comments

Mix dispatches a configReady event with the webpackConfig object.

You should be able to listen for it using something like this:

Mix.listen('configReady', function(webpackConfig) {
    // Add code here to output the webpack config or dump it to a file.
})

This is awesome! Thanks @kohenkatz, I never would have found that.

You can also use:

mix.dump()
Was this page helpful?
0 / 5 - 0 ratings

Related issues

amin101 picture amin101  路  3Comments

Micaso picture Micaso  路  3Comments

Bomavi picture Bomavi  路  3Comments

jpmurray picture jpmurray  路  3Comments

pixieaka picture pixieaka  路  3Comments