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."
|
|
|
|
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-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.
|
2022-07-14 13:59:29 +00:00
|
|
|
|
2022-09-13 12:54:31 +00:00
|
|
|
::ReadMore{link="/getting-started/assets"}
|