-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.oct.viewer.js
46 lines (45 loc) · 1.01 KB
/
webpack.oct.viewer.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
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
mode: 'development',
watch: true,
entry: {
seed: './src/seed.js',
modeldata: './src/modelsMin.js',
sdf: './src/octree/sdf.js',
buildmodel: './src/repo.js',
glslloader: './src/octree/glslloader.js',
oct: './src/octree/oct.js',
viewer: './src/octree/viewer.js',
},
// devtool: 'inline-source-map',
module: {
rules: [
{
test: /\.glsl$/,
use: [
{
loader: 'webpack-glsl-loader',
},
],
},
],
},
plugins: [
new HtmlWebpackPlugin({
title: 'Tickle Beach',
template: 'src/octree/viewer.html',
inject: 'body',
filename: 'viewer.html',
}),
],
performance: {
hints: false,
}, // hides the "huge file" warnings which i assume won't be relevant
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'public'),
clean: false,
publicPath: '',
},
};