Skip to Content
SvelteKit Up and Running
book

SvelteKit Up and Running

by Dylan Hildenbrand
July 2023
Beginner to intermediate content levelBeginner to intermediate
166 pages
3h 47m
English
Packt Publishing
Content preview from SvelteKit Up and Running

10

Managing Static Assets

When it comes to managing static assets, SvelteKit has little to do with the process. In fact, the entire process is handed over to the bundling tool Vite. By leveraging Vite for the management of static assets, we as developers don’t have to learn yet another framework-specific strategy. Instead, we can lean on Vite’s highly performant bundling and build processes. Because Vite automatically manages imported assets, we don’t have to worry about hashing files for caches. In this chapter, we’ll look at how we can leverage Vite to manage static assets such as images, fonts, audio, video, and CSS files. Once we examine how this is done, we’ll discuss some of the finer points surrounding static assets.

This chapter will ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

gRPC: Up and Running

gRPC: Up and Running

Kasun Indrasiri, Danesh Kuruppu
FastAPI

FastAPI

Bill Lubanovic
Practical WebAssembly

Practical WebAssembly

Sendil Kumar Nellaiyapen

Publisher Resources

ISBN: 9781804615485Supplemental Content