diff options
| author | Paul-Christian Volkmer | 2026-01-08 16:22:57 +0100 |
|---|---|---|
| committer | GitHub | 2026-01-08 15:22:57 +0000 |
| commit | ed4b068127530346345ed16b2e79b33bc5b03d57 (patch) | |
| tree | 173d36e24bb04ea61a2a960dd765e1c745dd6f6b /src/web/rspack.config.js | |
| parent | 7045318e87ecc853c000e9e11c955bc6298f2d56 (diff) | |
build: remove webjars and use custom build (#238)
Diffstat (limited to 'src/web/rspack.config.js')
| -rw-r--r-- | src/web/rspack.config.js | 33 |
1 files changed, 33 insertions, 0 deletions
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 |
