forked from chandra4reddy/3drendering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
26 lines (25 loc) · 916 Bytes
/
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
const path = require('path');
module.exports = {
mode: "development",
devtool: 'eval-source-map',
// entry: ['./src/index.js', './src/volumeapi.js'],
entry: ['./src/index.js', './src/3d-rendering.js'],
// entry: ['./src/local.js', './src/htmlSetup.js', './src/uids.js'],
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'public'),
},
devServer: {
static: {
directory: path.join(__dirname, 'public'),
},
compress: true,
port: 3000,
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS",
"Access-Control-Allow-Headers": "X-Requested-With, content-type, Authorization" },
}
};