Implement custom index

This commit is contained in:
Elliot DeNolf
2020-08-23 07:26:02 -04:00
parent 6f777dd09c
commit 9c928d497c
4 changed files with 18 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ module.exports = (config) => {
const plugins = [
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../client/index.html'),
template: config.admin && config.admin.indexHTML ? config.admin.indexHTML : path.resolve(__dirname, '../client/index.html'),
filename: './index.html',
}),
new webpack.HotModuleReplacementPlugin(),

View File

@@ -117,7 +117,7 @@ module.exports = (config) => {
const plugins = [
// new BundleAnalyzerPlugin(),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '../client/index.html'),
template: config.admin && config.admin.indexHTML ? config.admin.indexHTML : path.resolve(__dirname, '../client/index.html'),
filename: './index.html',
minify: true,
}),