2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
icon: IconDirectory
|
|
|
|
title: 'assets'
|
|
|
|
head.title: Assets directory
|
|
|
|
---
|
|
|
|
|
|
|
|
# Assets directory
|
|
|
|
|
2022-03-30 17:32:30 +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
|
2022-04-06 05:56:08 +00:00
|
|
|
- Images that won't be served from the [`public/`](/guide/directory-structure/public) directory.
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2022-04-06 05:56:08 +00:00
|
|
|
If you want to serve assets from the server, we recommend taking a look at the [`public/`](/guide/directory-structure/public) directory.
|