Skip to content

Commit

Permalink
Use mix() instead of asset() for hot-reload support (#217)
Browse files Browse the repository at this point in the history
The current use of asset() makes a freshly installed JetStream application incompatible with Laravel mix hot-reload.
  • Loading branch information
rasmuscnielsen committed Sep 17, 2020
1 parent 49e224b commit 749f769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/inertia/resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap">

<!-- Styles -->
<link rel="stylesheet" href="{{ asset('css/app.css') }}">
<link rel="stylesheet" href="{{ mix('css/app.css') }}">

<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.26.0/moment.min.js"></script>
<script src="{{ asset('js/app.js') }}" defer></script>
<script src="{{ mix('js/app.js') }}" defer></script>
</head>
<body class="font-sans antialiased">
@inertia
Expand Down

0 comments on commit 749f769

Please sign in to comment.