I am using VueJS in Laravel 5.4. I have installed vue dependencies with npm install. running npm run watch or npm run dev the code compiled successfully. The problem I am having is loading assets from resources/assets/
This is what I have done in my blade:
<head>
...
<link href="{{mix('/css/app.css')}}" rel="stylesheet" type="text/css">
</head>
<body>
....
<script type="text/javascript" src="{{mix('/js/app.js')}}"></script>
</body>
I am getting the following error:
Failed to load resource: the server responded with a status of 404 (Not Found) for app.js and and app.css
Replacing mix() with asset(), will load stylesheets correctly but app.js will be loaded from public/js/app.js instead of resource/assets/js/app.js
What am I doing wrong. Please help.