github laravel-mix/laravel-mix v0.6.0

latest releases: v6.0.43, v6.0.42, v6.0.41...
7 years ago

Additions

  • You may now compile Sass and Less at the same time. Before, you could only do mix.sass() or mix.less(). You had to choose. Now you can use both, if your app requires it. b2808ca
  • You may now call mix.extract() multiple times. Should you want to take advantage of HTTP2, this could be useful to split your vendor chunk into multiple, smaller files. bd4ddb2
  • As part of the new mix.extract() enhancements, you can also specify a new second argument, which will determine the output path - similar to mix.js().
mix.js('src', 'dest')
   .extract(['vue', 'jquery'], 'public/js/vendor-libs.js')
   .extract(['other', 'libs', 'to', 'extract'], 'public/js/will-go-here.js');

Fixes

  • When Webpack encounters an image, it'll now export it to /images, rather than your base public path. Any references to the file path will of course be updated automatically. e011d38
  • We no longer generate source maps for production environments. They're unnecessary. 71f4c7e
  • Calling mix.extract() before mix.js() no longer triggers an error. (But for readability, I'd still recommend calling it after.) 89af7a6
  • When calling mix.combine(), we now verify that every source file provided does, in fact, exist. bd1d69c
  • Ensured that Less compilation does include source maps, where necessary. 0d70dc9
  • Fixed a bug that caused multiple mix.sass() calls with the same base directory and file name to generate only one file, rather than two. 9d9c52f

Don't miss a new laravel-mix release

NewReleases is sending notifications on new releases.