Implement custom index
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user