Skip to content

Commit

Permalink
Use Vite in an example
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Dec 16, 2024
1 parent 24bd65a commit 88371ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function fields(NovaRequest $request): array
HtmlCode::make('HTML Content', 'content')
// Include stylesheets into iframe for more accurate preview
->styles([
asset('css/app.css'), // your custom
'https://cdn.example.com/custom.css', // from a CDN
Vite::asset('resources/css/app.css'), // from your app
])
// Wrap the HTML content in a template ("%CODE%" is required)
->previewTemplate('<section class="panel">%CODE%</section>'),
Expand Down

0 comments on commit 88371ba

Please sign in to comment.