add readme for assets dir and cleanup directory (#33210)

add a readme to the assets directory stating its purpose. We also
untrack generated assets that were mistakenly commited.
This commit is contained in:
Gabriel Hernandez
2025-10-03 16:44:38 +01:00
committed by GitHub
parent d41d4f871e
commit eeb1704777
12 changed files with 11 additions and 3 deletions
+1
View File
@@ -16,6 +16,7 @@ assets/*@*.eot
assets/*@*.woff
assets/*@*.woff2
assets/*@*.ttf
assets/*@*.mp4
frontend/templates/react.tmpl
bindata.go
server/bindata/generated.go
+9
View File
@@ -0,0 +1,9 @@
# assets Directory
This directory is used by the frontend build tool to store generated frontend build assets, such as JavaScript bundles, CSS files, and other static resources (images, fonts, etc.) that are produced during the build process.
## Key Points
- **Do not commit generated files:** All files in this directory are generated automatically and are git-ignored. They should not be committed to version control.
- **Not for static files:** Do not place unrelated static files (like PDFs, config profiles, or documentation) here. Use a separate directory for non-UI assets.
- **Regenerated on build:** These files are recreated every time you run the frontend build process.
Binary file not shown.
Binary file not shown.
+1 -3
View File
@@ -25,9 +25,7 @@ let plugins = [
excludeWarnings: true,
}),
new webpack.DefinePlugin({
featureFlags: {
// e.g.: allowGitOpsMode: JSON.stringify(process.env.ALLOW_GITOPS_MODE),
},
featureFlags: {},
}),
];