Laravel Elixir provides a clean, fluent API for defining basic Gulp<\/a> tasks for your Laravel application. Elixir supports common CSS and JavaScript pre-processors like Sass<\/a> and Webpack<\/a>. Using method chaining, Elixir allows you to fluently define your asset pipeline. For example:<\/p>\n If you've ever been confused and overwhelmed about getting started with Gulp and asset compilation, you will love Laravel Elixir. However, you are not required to use it while developing your application. You are free to use any asset pipeline tool you wish, or even none at all.<\/p>\n Before triggering Elixir, you must first ensure that Node.js and NPM are installed on your machine.<\/p>\n By default, Laravel Homestead includes everything you need; however, if you aren't using Vagrant, then you can easily install the latest version of Node and NPM using simple graphical installers from their download page<\/a>.<\/p>\n Next, you'll need to pull in Gulp<\/a> as a global NPM package:<\/p>\n The only remaining step is to install Laravel Elixir. Within a fresh installation of Laravel, you'll find a If you are developing on a Windows system or you are running your VM on a Windows host system, you may need to run the Installation & Setup<\/a><\/h2>\n
Installing Node<\/h4>\n
Gulp<\/h4>\n
Laravel Elixir<\/h4>\n
package.json<\/code> file in the root of your directory structure. The default package.json<\/code> file includes Elixir and the Webpack JavaScript module bundler. Think of this like your composer.json<\/code> file, except it defines Node dependencies instead of PHP. You may install the dependencies it references by running:<\/p>\nnpm install<\/code> command with the --no-bin-links<\/code> switch enabled:<\/p>\nRunning Elixir<\/a><\/h2>\n