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


Newsletter

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

Laravel News Partners

Laravel Jobs

Full-Stack Developer
Tampa
Nu Image Medical
Senior Software Developer
Remote (US ONLY)/Kenilworth, NJ
Diversified
Senior Back-end Laravel API Developer - Immediate Contract (Full Time)
Remote
ApproveMe // Document Signing
Web Development Project Manager
Houston, TX
Swyft Filings
Experienced Laravel/VueJS Developer (Freelance)
Remote (preferably in the US)
Prosperly LLC
Senior React / Laravel Developer
Remote
The C.A.S.E. Engineering Group
Software Engineer
Boston
ButcherBox