forked from UST-MICO/grapheditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack-dev.config.js
56 lines (54 loc) · 1.65 KB
/
webpack-dev.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const { merge } = require('webpack-merge');
const common = require('./webpack.config.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const path = require('path');
module.exports = merge(common, {
mode: 'development',
plugins: [
new HtmlWebpackPlugin({
template: 'example/test.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'groups.html',
template: 'example/test-groups.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'groups-drag-and-drop.html',
template: 'example/test-groups-drag-and-drop.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'resize.html',
template: 'example/test-resize.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'textwrap.html',
template: 'example/test-textwrap.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'isolation.html',
template: 'example/test-isolation.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
],
devServer: {
static: path.resolve(__dirname, '_bundles'),
port: 9009
},
});