-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.blade.php
41 lines (38 loc) · 1.53 KB
/
app.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<?php
header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1
header("Pragma: no-cache"); //HTTP 1.0
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="no-cache, no store"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CO2Dash</title>
@production
@php
$manifest = json_decode(file_get_contents(public_path('build/manifest.json')), true);
@endphp
@foreach ($manifest as $export)
@if (isset($export['css']))
@foreach ($export['css'] as $url)
<link rel="stylesheet" href="/build/{{ $url }}" />
@endforeach
@endif
@endforeach
@endproduction
</head>
<body>
<div id="app"></div>
@production
@php
$manifest = json_decode(file_get_contents(public_path('build/manifest.json')), true);
@endphp
<script type="module" src="/build/{{ $manifest['resources/js/main.ts']['file'] }}"></script>
@else
<script type="module" src="http://localhost:3000/@vite/client"></script>
<script type="module" src="http://localhost:3000/resources/js/main.ts"></script>
@endproduction
</body>
</html>