-
Notifications
You must be signed in to change notification settings - Fork 9
/
webpack.dev.js
29 lines (28 loc) · 890 Bytes
/
webpack.dev.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
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = merge(common, {
mode: 'development',
devtool: 'cheap-module-eval-source-map',
plugins: [
new HtmlWebpackPlugin({
template: 'src/autogenerated/chapter1.html',
filename: 'chapter1.html',
}),
new HtmlWebpackPlugin({
template: 'src/autogenerated/chapter2.html',
filename: 'chapter2.html',
}),
new HtmlWebpackPlugin({
template: 'src/autogenerated/chapter3.html',
filename: 'chapter3.html',
}),
new HtmlWebpackPlugin({
template: 'src/autogenerated/chapter4.html',
filename: 'chapter4.html',
}),
],
devServer: {
contentBase: './dist',
},
});