From ed4b068127530346345ed16b2e79b33bc5b03d57 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 8 Jan 2026 16:22:57 +0100 Subject: build: remove webjars and use custom build (#238) --- src/web/rspack.config.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/web/rspack.config.js (limited to 'src/web/rspack.config.js') diff --git a/src/web/rspack.config.js b/src/web/rspack.config.js new file mode 100644 index 0000000..aa92d31 --- /dev/null +++ b/src/web/rspack.config.js @@ -0,0 +1,33 @@ +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); + +export default { + entry: { + main: './src/web/main.js', + charts: './src/web/charts.js' + }, + output: { + path: path.resolve(__dirname, '../../src/main/resources/static'), + chunkFilename: '[id].js', + sourceMap: false, + library: { + type: "window" + } + }, + module: { + rules: [ + { + test: /\.css$/, + use: [{ + loader: "postcss-loader" + }], + type: "css" + }, + ] + }, + experiments: { + css: true, + } +} \ No newline at end of file -- cgit v1.2.3