tombenevides's avatar

Compiling Assets on Production

How can I run npm run prod (or dev) while using the system without errors? When I do this while I'm using the system, I got this error:

Unable to locate Mix file: /css/app.css. (View: /var/www/html/sig-laravel/resources/views/layouts/layout-endless.blade.php)

Any help?

0 likes
2 replies
JeffreyWay's avatar

If you're seeing that error, the mix-manifest.json file is not in your public/ directory. Can you find that file?

1 like
tombenevides's avatar

Yes, it is. The system works fine before and after, but while compiling assets this error appears. It seems the mix (I guess..) delete the old app.css file and generate a new one.

Please or to participate in this conversation.