question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Laravel mix is not properly updating the mix-manifest.json

See original GitHub issue

This 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:closed
  • Created 7 years ago
  • Comments:12

github_iconTop GitHub Comments

4reactions
brada1703commented, Jul 18, 2017

@basuregami - Mine is working on my localhost, but when I push it to the server, I get this error. Any idea?

3reactions
mlevkovskycommented, Feb 3, 2017

dude A+ on the support and dedication.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found