-
Notifications
You must be signed in to change notification settings - Fork 0
/
htmlpages.js
29 lines (28 loc) · 1005 Bytes
/
htmlpages.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 path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const htmlPages = [
new HtmlWebpackPlugin({
title: 'Main File',
filename: path.resolve(__dirname, 'dist/index.html'),
template: path.resolve(__dirname, 'src/views/index.html'),
}),
new HtmlWebpackPlugin({
title: 'Blank File',
filename: path.resolve(__dirname, 'dist/blank.html'),
template: path.resolve(__dirname, 'src/views/blank.html')
}),
new HtmlWebpackPlugin({
title: 'Blank File',
filename: path.resolve(__dirname, 'dist/phase_1/file1.html'),
template: path.resolve(__dirname, 'src/views/phase_1/file1.html')
}),
new HtmlWebpackPlugin({
title: 'Blank File',
filename: path.resolve(__dirname, 'dist/phase_1/file2.html'),
template: path.resolve(__dirname, 'src/views/phase_1/file2.html')
}),
]
module.exports = {
files: htmlPages
}