mzohaibqc / antd-theme-webpack-plugin

A webpack plugin for Dynamic theme generation for Ant Design

Home Page:https://mzohaibqc.github.io/antd-theme-webpack-plugin/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indexFileName not in assets

SinHide opened this issue · comments

webpack version: 5.7.0
antd-theme-webpack-plugin version: 1.3.9

generateIndexContent(assets, compilation) {
console.log(this.options.indexFileName) // index.html (defaultOption)
console.log(this.options.indexFileName in assets) // false
if (
this.options.indexFileName &&
this.options.indexFileName in assets
) {
......
}
......
}

It cause the generateIndexContent callback not working.
But it working when plugin's version is 1.3.7