-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathwebpack.config.js
41 lines (39 loc) · 1.02 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
const path = require('path');
const linterRules = require('./config/rules-linter.js');
const pvwRules = require('./config/rules-pvw.js');
const visualizerRules = require('./config/rules-visualizer.js');
const vtkjsRules = require('./config/rules-vtkjs.js');
const wslinkRules = require('./config/rules-wslink.js');
module.exports = {
plugins: [],
entry: path.join(__dirname, './src/app.js'),
output: {
path: path.join(__dirname, './dist'),
filename: 'Visualizer.js',
},
module: {
rules: [
{
test: require.resolve('./src/app.js'),
loader: 'expose-loader?Visualizer',
},
].concat(linterRules, pvwRules, visualizerRules, vtkjsRules, wslinkRules),
},
resolve: {
alias: {
PVWStyle: path.join(__dirname, './node_modules/paraviewweb/style'),
VisualizerStyle: path.join(__dirname, './style'),
},
},
devServer: {
contentBase: './dist/',
port: 9999,
hot: true,
quiet: false,
noInfo: false,
stats: {
colors: true,
},
proxy: {},
},
};