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.

Visit Resource →

Filed in: Laravel


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

Laravel News Partners

Laravel Jobs

Mid / Sen. Software Engineer
Clearwater, FL
Remote PHP / Laravel Developer
Senior PHP/Laravel Developer: Your Dream Work Environment
iPhone Photography School
Senior Laravel Developer
Leidseplein, Amsterdam
PHP Developer
Senior Laravel Developer (Canada and India)
London, Ontario, Canada
Factory Bucket Inc.
Laravel, PHP, PostgreSQL, Neo4J Developer
Pune, India (intern in Denver, CO)
Life AI