Skip to content

Using Spotlight directly in HTML

To use Spotlight directly, you can load the script from a CDN and initialize it in a separate script tag.

This solution will probably change in the future, as we are working on a better way to load Spotlight.


<!doctype html>
<!-- Set process for development environment -->
window.process = { env: { NODE_ENV: 'development' } };
<!-- Load Spotlight.js from the CDN -->
<script type="module" src=""></script>
<!-- Import and initialize Spotlight in a separate script tag -->
<script type="module">
import * as Spotlight from '';
openOnInit: true,