Skip to main content
DrupalABC

Main navigation

  • Home
  • Search
  • Learn Drupal
  • Certifications
  • Drupal Code Finder
User account menu
  • Log in

Breadcrumb

  1. Home

Svelte

How to add Svelte app to Drupal?

Svelte is a very popular JS framework for developing exciting front-end applications. It can be used to create standalone apps as well as embed JS apps into your existing website. Here is how you can include a Svelte app on your Drupal website.

  • Add your Svelte app folder to the module/theme folder.
  • Declare the svelte JS and CSS in your libraries.yml file
  • Attach the markup and library inside the render array.
DrupalABC

Footer

  • Buy me a coffee
  • Drupal.org profile
  • LinkedIn
Powered by Drupal

Drupal is a registered trademark of Dries Buytaert