add js file to laravel mix code example Example: webpack config laravel mix mix.webpackConfig({} || cb);