-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
56 lines (55 loc) · 1.06 KB
/
webpack.config.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const path = require('path');
module.exports = {
entry: {
app: {
import: './src/app.ts',
dependOn: 'three',
},
volume_painter: {
import: './src/volume_painter.ts',
dependOn: 'three',
},
geo_painter: {
import: './src/geo_painter.ts',
dependOn: 'three',
},
util: {
import: './src/util.ts',
dependOn: 'three',
},
index: {
import: './src/index.ts',
},
three: 'three',
},
mode: 'development',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
{
test: /\.worker\.(js|ts)$/i,
use: [{
loader: 'comlink-loader',
}],
},
{test: /\.frag$/, use: 'raw-loader'},
{test: /\.vert$/, use: 'raw-loader'},
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'static'),
},
watch: false,
};