Laravel mix is not properly updating the mix-manifest.json
See original GitHub issueThis is my mix file
`const { mix } = require(‘laravel-mix’);
mix.js(‘resources/assets/js/app.js’, ‘public/js’) .sass(‘resources/assets/sass/app.scss’, ‘public/css’); mix.copy(‘resources/assets/css/styles.css’, ‘public/css/styles.css’)`
However whenever I try to reference my styles.css folder with
<link rel="stylesheet" href="{{ mix('/css/styles.css') }}"/>
I get an error 500 saying: Unable to locate Mix file: /css/styles.css
When I check the mix-manifest.json my styles.css is not added in there. If I add it myself then everything loads fine, but since it’s recreated each time I run mix, that’s obviously not an option.
Thanks in advance
Issue Analytics
- State:
- Created 7 years ago
- Comments:12
Top Results From Across the Web
Laravel mix is not properly updating the mix-manifest.json #283
When I check the mix-manifest.json my styles.css is not added in there. If I add it myself then everything loads fine, but since...
Read more >Versioning with Mix, manifest does not exist. {but.... it does!)
I came across this thread as I faced the same issue. The problem a lot of the times is that the mix() -helper...
Read more >The Mix manifest does not exist when it does exist
The problem I faced was that the mix() -helper function by default looks for the manifest-json file in /public/manifest-json.js so if you ...
Read more >Frequently Asked Questions | Laravel Mix Documentation
My mix-manifest. json file shouldn't be in the project root. If you're not using Laravel, your mix-manifest. json file will be dumped into...
Read more >Laravel Mix - Laravel - The PHP Framework For Web Artisans
Laravel Mix, a package developed by Laracasts creator Jeffrey Way, provides a fluent API for defining webpack build steps for your Laravel application...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@basuregami - Mine is working on my localhost, but when I push it to the server, I get this error. Any idea?
dude A+ on the support and dedication.