blob: aa92d318a0a79bede2a0298d3d3c73bdebbf855a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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,
}
}
|