Hello @janmoes,
The command watch its only for dev purpose, in the server you should use build. So execute npm run build. (This should be part of your CI/CD)
Hi there, I have a project which runs already for like 2 years on a shared hosting. I ran into some cache issues. Everytime I update something locally I run npm run watch to compile the scss into an app.css, which is located in the /public folder. On shared hosting it is located in /public_html. I heard that <link href="{{ mix('/css/app.css') }}" rel="stylesheet"> will load in the css with a version number. But on shared hosting I get this error Mix manifest not found at: /home/s7k92lgsdiw/my_project/public/mix-manifest.json I understand the error, since it is looking for the file within the local laravel structure. How can I fix this? that it looks for /public_html/mix-manifest.json?
Please or to participate in this conversation.