2021-10-11 12:57:54 +00:00
|
|
|
---
|
2022-10-06 09:15:30 +00:00
|
|
|
navigation.icon: IconDirectory
|
|
|
|
title: "assets"
|
|
|
|
description: "The assets/ directory is used to add all the website's assets that the build tool will process."
|
2022-11-21 15:51:39 +00:00
|
|
|
head.title: "assets/"
|
2021-10-11 12:57:54 +00:00
|
|
|
---
|
|
|
|
|
2022-08-13 07:27:04 +00:00
|
|
|
# Assets Directory
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2022-04-16 13:53:36 +00:00
|
|
|
The `assets/` directory is used to add all the website's 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-11-16 10:04:28 +00:00
|
|
|
- Images that won't be served from the [`public/`](/docs/guide/directory-structure/public) directory.
|
2021-10-11 12:57:54 +00:00
|
|
|
|
2022-11-16 10:04:28 +00:00
|
|
|
If you want to serve assets from the server, we recommend taking a look at the [`public/`](/docs/guide/directory-structure/public) directory.
|
2022-07-14 13:59:29 +00:00
|
|
|
|
2022-11-16 10:04:28 +00:00
|
|
|
::ReadMore{link="/docs/getting-started/assets"}
|