summaryrefslogtreecommitdiff
path: root/src/web/rspack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/rspack.config.js')
-rw-r--r--src/web/rspack.config.js33
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