-
-
Notifications
You must be signed in to change notification settings - Fork 411
Expand file tree
/
Copy pathwebpack.settings.js
More file actions
38 lines (37 loc) · 781 Bytes
/
webpack.settings.js
File metadata and controls
38 lines (37 loc) · 781 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
34
35
36
37
38
// load local environment variables
require('dotenv').config();
// Webpack settings exports
module.exports = {
name: 'vtk.js',
copyright: 'Kitware, Inc.',
paths: {
src: {
base: './Sources/',
},
dist: {
base: './dist/umd/',
},
examples: {
base: './dist/examples',
},
},
urls: {
publicPath: '/dist/umd/',
},
entries: {
vtk: 'index.js',
},
devServerConfig: {
host: () => process.env.DEVSERVER_HOST || '0.0.0.0',
port: () => process.env.DEVSERVER_PORT || 9999,
ws: {
hostname: 'localhost',
pathname: '/ws',
port: 8080,
},
},
options: {
openAnalyzer: () => process.env.BUNDLE_ANALYZER || false,
},
examples: [{ path: '../Examples', regexp: 'index.js' }, '../Sources']
};