Laravel / updated: May 05, 2015

Important Elixir Folder Changes

Jeffrey Way from the Laracasts forum:

Quick note that I’m about to push an Elixir update that will change the base directory for your JavaScript and CSS files. Currently, the default is set to resources/js and resources/css, respectively; however, we’re changing this to be more in line with your other assets, like Sass and CoffeeScript files.

So, now, the default locations will be resources/assets/js and resources/assets/css. If/When you update Elixir, be sure to check your Gulpfile to see if you need to update any paths.

He also points out that you can keep the old style by passing the path as the third parameter:

mix.scripts(['one.js', 'two.js'], null, './resources/js');

Read the full forum thread for more information.

Laravel News Partners

Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.