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 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Laravel Senior Developer
Remote, Canada Only
BeMo Academic Consulting
Senior Fullstack Developer / Architect (w/m/d)
Remote / Munich - Germany GmbH
Medior full stack developer (Laravel)
Deventer (or remote) in the Netherlands, Dutch speaking required.
Senior Full Stack PHP Developer (Laravel)
Senior Laravel Developer