2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
icon: IconDirectory
|
|
|
|
title: 'assets'
|
|
|
|
head.title: Assets directory
|
|
|
|
---
|
|
|
|
|
|
|
|
# Assets directory
|
|
|
|
|
2022-03-16 11:16:05 +00:00
|
|
|
The `assets/` directory is used to add all the website assets that the build tool (Webpack or Vite) will process.
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2021-11-21 12:31:44 +00:00
|
|
|
The directory usually contains the following types of files:
|
2021-10-29 11:26:01 +00:00
|
|
|
|
2021-10-11 12:57:54 +00:00
|
|
|
- Stylesheets (CSS, SASS, etc.)
|
|
|
|
- Fonts
|
2021-10-11 22:47:43 +00:00
|
|
|
- Images that won't be served from the [`public/`](/docs/directory-structure/public) directory.
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2021-11-21 12:31:44 +00:00
|
|
|
If you want to serve assets from the server, we recommend taking a look at the [`public/`](/docs/directory-structure/public) directory.
|