-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwebpack-dev.config.js
91 lines (89 loc) · 2.78 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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: 'textwrap-performance.html',
template: 'example/test-textwrap-performance.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'isolation.html',
template: 'example/test-isolation.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
new HtmlWebpackPlugin({
filename: 'automated.html',
template: 'example/test-automated.html',
hash: true,
inject: 'head',
scriptLoading: 'blocking',
}),
],
devServer: {
static: [
{
"directory": path.resolve(__dirname, '_bundles'),
"publicPath": "/"
},
{
"directory": path.resolve(__dirname, 'node_modules', 'mocha'),
"publicPath": "/mocha"
},
{
"directory": path.resolve(__dirname, 'node_modules', 'chai'),
"publicPath": "/chai"
},
{
"directory": path.resolve(__dirname, 'node_modules', 'simulant', 'dist'),
"publicPath": "/simulant"
},
{
"directory": path.resolve(__dirname, 'test'),
"publicPath": "/test"
}
],
port: 9009
},
});