Skip to content

Commit

Permalink
log-viewer-webui: Serve client using server in production; Add npm sc…
Browse files Browse the repository at this point in the history
…ripts to setup, lint, and start client and server together during development. (#474)
  • Loading branch information
kirkrodrigues authored Jul 7, 2024
1 parent 986a957 commit 02fbea4
Show file tree
Hide file tree
Showing 8 changed files with 855 additions and 581 deletions.
10 changes: 8 additions & 2 deletions components/log-viewer-webui/client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import * as path from "node:path";
import {fileURLToPath} from "node:url";

import ReactRefreshPlugin from "@pmmmwh/react-refresh-webpack-plugin";


Expand Down Expand Up @@ -42,7 +43,9 @@ const config = {
},
],
],
plugins: isProduction ? [] : ["react-refresh/babel"]
plugins: isProduction ?
[] :
["react-refresh/babel"],
},
},
},
Expand Down Expand Up @@ -76,6 +79,9 @@ const config = {
};

export default () => {
config.mode = isProduction ? "production" : "development";
config.mode = isProduction ?
"production" :
"development";

return config;
};
351 changes: 351 additions & 0 deletions components/log-viewer-webui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02fbea4

Please sign in to comment.