Mix’s API provides a useful webpackConfig method for adjusting the webpack config. https://laravel.com/docs/5.6/mix#custom-webpack-configuration The webpackConfig method accepts an object, which should contain any Webpack-specific configuration that you wish to apply. I believe the following code should work. webpack.mix.js: const mix = require(‘laravel-mix’); const CompressionPlugin = require(‘compression-webpack-plugin’); mix.setPublicPath(‘dist’) .js(‘src/app.js’, ‘scripts/’) .extract([ ‘jquery’, ‘axios’, ‘babel-polyfill’, ‘lodash’, ‘tether’, … Read more