mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-19 08:28:41 +00:00
18 lines
444 B
JavaScript
18 lines
444 B
JavaScript
const path = require('path')
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
|
|
module.exports = {
|
|
htmlPage(title, filename, chunks, template) {
|
|
return new HtmlWebpackPlugin({
|
|
title: title,
|
|
hash: true,
|
|
cache: true,
|
|
inject: 'body',
|
|
filename: './pages/' + filename + '.html',
|
|
template: template || path.resolve(__dirname, './page.ejs'),
|
|
appMountId: 'app',
|
|
chunks: chunks
|
|
});
|
|
}
|
|
}
|