Elixir is a build tool that provides a simple user interface and a series of conventions on top of Gulp. Elixir can preprocess your CSS using Sass or LESS. It can concatenate files, minify them, rename them, and copy them, and it can copy entire directories or individual files.
The --production flag
By default, Elixir doesn’t minify all the files it’s generating. But if you want to run the build scripts in “production” mode, with all minification enabled, you can just add the –production flag:
Compiling multiple files with Elixir
Combining stylesheets with Elixir
Concatenating JavaScript
mix.version
This will generate a version of the specified file with a unique hash appended to it in the public/build directory—something like public/build/css/all-84fh4556.css.
Using the elixir() helper in views: