I am new in laravel 12. I have a project in laravel 12. My custom CSS file is completely working in localhost after i run npm run dev, then i run npm run build to upload the project to my own server, but the CSS file not working. If i run npm run dev and open the project in my server, the CSS file works fine.
in layouts/app.blade.php
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=Nunito" rel="stylesheet">
<link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet" type='text/css'>
<!-- Scripts -->
@vite(['resources/sass/app.scss', 'resources/js/app.js'])
@vite(['resources/css/mystyle.css', 'resources/js/myjs.js'])
<script src="{{ asset('js/myjs.js')}}"></script>
<link rel="stylesheet" type="text/css" href="{{ asset('css/mystyle.css') }}">
</head>
should i locate the css and js file in public or in resources?