-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.config.js
More file actions
33 lines (32 loc) · 813 Bytes
/
webpack.config.js
File metadata and controls
33 lines (32 loc) · 813 Bytes
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
var path = require('path');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
module.exports = {
mode: 'development',
entry: {
// public: './jssrc/public.js',
// 'public-aframe': './jssrc/public-aframe.js',
'public-webcomponent': './jssrc/public-webcomponent.js',
// admin: './jssrc/admin.js'
},
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'js')
},
// force use top-level THREE so that RayInput doesn't use its own internal THREE instance
resolve: {
// alias: {
// three: path.resolve(__dirname, 'node_modules/three')
// }
},
module: {
// rules: [
// {
// test: /\.js$/,
// loader: "imports-loader?THREE=three"
// }
// ]
}
// plugins: [
// new UglifyJSPlugin()
// ]
};