Build a Monthly Subscription App with Laravel Cashier

Assets

Laravel Elixir makes automating Gulp tasks incredibly easy. We'll be creating our own CSS and JS files that we'll use for our application.

We'll create Sass and JS tasks using the following Elixir tasks:

elixir(function(mix) {

    // compile sass
    mix.sass('app.scss');

    // combine/minify all these files
    mix.scripts([
      './node_modules/jquery/dist/jquery.min.js',
      'magic.js'
    ]);
});

A fun trick to get all JS files in a given directory:

elixir(function(mix) {
    mix.scriptsIn('public/js/some/directory');
});