Skip to content

Commit 88371ba

Browse files
committed
Use Vite in an example
1 parent 24bd65a commit 88371ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function fields(NovaRequest $request): array
5252
HtmlCode::make('HTML Content', 'content')
5353
// Include stylesheets into iframe for more accurate preview
5454
->styles([
55-
asset('css/app.css'), // your custom
5655
'https://cdn.example.com/custom.css', // from a CDN
56+
Vite::asset('resources/css/app.css'), // from your app
5757
])
5858
// Wrap the HTML content in a template ("%CODE%" is required)
5959
->previewTemplate('<section class="panel">%CODE%</section>'),

0 commit comments

Comments
 (0)