Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-23.2: ui: add static images to asset build step #122704

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions pkg/ui/workspaces/db-console/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,38 @@ webpack_bin.webpack_cli(
":node_modules",
],
outs = [
"db-console-ccl/assets/Inconsolata-Regular.woff",
"db-console-ccl/assets/Inconsolata-Regular.woff2",
"db-console-ccl/assets/Lato-Bold.woff",
"db-console-ccl/assets/Lato-Bold.woff2",
"db-console-ccl/assets/Lato-Light.woff",
"db-console-ccl/assets/Lato-Light.woff2",
"db-console-ccl/assets/Lato-Medium.woff",
"db-console-ccl/assets/Lato-Medium.woff2",
"db-console-ccl/assets/Lato-Regular.woff",
"db-console-ccl/assets/Lato-Regular.woff2",
"db-console-ccl/assets/RobotoMono-Bold.woff",
"db-console-ccl/assets/RobotoMono-Bold.woff2",
"db-console-ccl/assets/RobotoMono-Medium.woff",
"db-console-ccl/assets/RobotoMono-Medium.woff2",
"db-console-ccl/assets/RobotoMono-Regular.woff",
"db-console-ccl/assets/RobotoMono-Regular.woff2",
"db-console-ccl/assets/SFMono-Semibold.woff",
"db-console-ccl/assets/SFMono-Semibold.woff2",
"db-console-ccl/assets/SourceSansPro-Bold.woff",
"db-console-ccl/assets/SourceSansPro-Bold.woff2",
"db-console-ccl/assets/SourceSansPro-Regular.woff",
"db-console-ccl/assets/SourceSansPro-Regular.woff2",
"db-console-ccl/assets/SourceSansPro-SemiBold.woff",
"db-console-ccl/assets/SourceSansPro-SemiBold.woff2",
"db-console-ccl/assets/bundle.js",
"db-console-ccl/assets/email_signup_bg.png",
"db-console-ccl/assets/favicon.ico",
"db-console-ccl/assets/heroBannerLp.png",
"db-console-ccl/assets/login-background.png",
"db-console-ccl/assets/not-found.svg",
"db-console-ccl/assets/questionMap.svg",
"db-console-ccl/assets/spinner.gif",
],
args = [
"--config webpack.config.js",
Expand All @@ -79,7 +110,37 @@ webpack_bin.webpack_cli(
":node_modules",
],
outs = [
"db-console-oss/assets/Inconsolata-Regular.woff",
"db-console-oss/assets/Inconsolata-Regular.woff2",
"db-console-oss/assets/Lato-Bold.woff",
"db-console-oss/assets/Lato-Bold.woff2",
"db-console-oss/assets/Lato-Light.woff",
"db-console-oss/assets/Lato-Light.woff2",
"db-console-oss/assets/Lato-Medium.woff",
"db-console-oss/assets/Lato-Medium.woff2",
"db-console-oss/assets/Lato-Regular.woff",
"db-console-oss/assets/Lato-Regular.woff2",
"db-console-oss/assets/RobotoMono-Bold.woff",
"db-console-oss/assets/RobotoMono-Bold.woff2",
"db-console-oss/assets/RobotoMono-Medium.woff",
"db-console-oss/assets/RobotoMono-Medium.woff2",
"db-console-oss/assets/RobotoMono-Regular.woff",
"db-console-oss/assets/RobotoMono-Regular.woff2",
"db-console-oss/assets/SFMono-Semibold.woff",
"db-console-oss/assets/SFMono-Semibold.woff2",
"db-console-oss/assets/SourceSansPro-Bold.woff",
"db-console-oss/assets/SourceSansPro-Bold.woff2",
"db-console-oss/assets/SourceSansPro-Regular.woff",
"db-console-oss/assets/SourceSansPro-Regular.woff2",
"db-console-oss/assets/SourceSansPro-SemiBold.woff",
"db-console-oss/assets/SourceSansPro-SemiBold.woff2",
"db-console-oss/assets/bundle.js",
"db-console-oss/assets/email_signup_bg.png",
"db-console-oss/assets/favicon.ico",
"db-console-oss/assets/heroBannerLp.png",
"db-console-oss/assets/login-background.png",
"db-console-oss/assets/not-found.svg",
"db-console-oss/assets/spinner.gif",
],
args = [
"--config webpack.config.js",
Expand Down
3 changes: 3 additions & 0 deletions pkg/ui/workspaces/db-console/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ module.exports = (env, argv) => {
loader: "url-loader",
options: {
limit: 10000,
// Preserve the original filename instead of using hash
// in order to play nice with bazel.
name: "[name].[ext]",
},
},
{ test: /\.html$/, loader: "file-loader" },
Expand Down