Skip to content

Commit

Permalink
type: fix miniCssExtractPlugin type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 24, 2023
1 parent 9c59aad commit c2db22e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/miniCssExtractPlugin.ts
Expand Up @@ -25,7 +25,7 @@ export const miniCssExtractPlugin = (
const regexp = /(MiniCssExtractPlugin)/;
conf.plugins = (conf.plugins || [])
.map((item) => {
if (item.constructor && item.constructor.name && regexp.test(item.constructor.name)) {
if (item && item.constructor && item.constructor.name && regexp.test(item.constructor.name)) {
return new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
Expand Down

0 comments on commit c2db22e

Please sign in to comment.