Static files in Svelte Kit

Static files in Svelte Kit apps


Static files in Svelte Kit application can be placed in a public folder, static. Usually, it is wise to place files like

  • fave.icon
  • images
  • log

in the static đź“‚

The file can be accessed directly, without specifying the base path, such as ../static.

<img scr="/brand.svg"/>

    Author: Manoj

    Developer and a self-learner, love to work with Reactjs, Angular, Node, Python and C#.Net

    Leave a comment

    This site uses Akismet to reduce spam. Learn how your comment data is processed.