Additions
- Added support for automatic image file size optimization. 115e8f1
- Added support for automatic CSS purification (removal of unused CSS). 41642eb
mix.options({ purifyCss: true });
- Added
mix.copyDirectory()
method. This will copy a full directory to a new location. a7699b5
mix.copyDirectory('node_modules/some/place', 'public/copy/to/here');
- Per Babel's recommendation, we've switched the default Babel preset from
babel-preset-es2015
over tobabel-preset-env
. 126bad0 - You can now disable the default clearing of of the console, each time Webpack compiles. 6400bb0
mix.options({ clearConsole: false });
- Bumped Webpack dependency to ~2.3.0. cc79fe9
- Bumped sass-loader and resolve-url-loader dependencies. 1828c8b
- Bumped vue-loader and vue-template-compiler dependencies. 105533b
- Bumped friendly-errors-webpack-plugin. 05c5674
Potentially Breaking
- We no longer add jQuery as a default for webpack's ProvidePlugin. 8200441 If your app requires this, you can manually add it back in, like so:
mix.autoload({
jquery: ['$', 'window.jQuery', 'jQuery']
});
Learn more about autoloading here.
Fixes
- For file versioning, we swapped the
webpack-md5-hash
plugin in favor ofwebpack-chunk-hash
. 52807f8 - Chunked files will now be placed in your main JS output folder. 735521f
- We now use smarter merging for
mix.webpackConfig()
. d9fa390 - To prevent file name collisions, vendor assets will now be moved to a dedicated vendor folder. 6f3b052
mix.minify()
now honors any custom Uglify user options. 761f9ad