If you've ever been confused about how to get started with Gulp and asset compilation, you will love Laravel Elixir!
Documentation for Elixir can be found on the Laravel website.
Laravel Elixir is open-sourced software licensed under the MIT license
- Added support for overriding the default Uglify configuration.
- Fixed an issue where passing a negated path (to ignore a file) causes an assertion here.
- In order to allow Watchify to use the Browserify cache for fast rebuilds, default
packageCacheconfiguration options have been added.
gulp-phpspec, in favor of piping to a simple shell script. If you are running
mix.phpSpec(), please note the argument adjustment:
mix.phpSpec(src, command), respectively.
- Remove all unsafe optimizations performed by the cssnano plugin. You may re-enable these by updating your config:
Elixir.config.css.cssnano.pluginOptions.safe = false.
mix.exec(command, watchPath)method. If you've ever needed to trigger a shell command as part of your compile process, you'll be happy to see this. Try out
mix.exec('say "Hello there"')for an example.
- Swapped out the "gulp-minify-css" plugin (now deprecated) with the recommended "gulp-cssnano". If you were manually overriding any Elixir options for "gulp-minify-css", please update them for "gulp-cssnano". This likely won't affect you otherwise.
mix.combine([src], outputPath)method. This is useful in the instance where you want to concatenate an array of files, without running any unnecessary and slow compilation (Uglify, Sourcemaps, etc.). You'll frequently use this for combining pre-minified libraries and such.