diff --git a/cli.js b/cli.js index 092977c..db9d59d 100755 --- a/cli.js +++ b/cli.js @@ -38,7 +38,7 @@ const otherPlugins = mergedWebpackConfig.plugins.filter( ) const mergedHtmlPlugins = [ ...new Map( - htmlPlugins.map((plugin) => [plugin.userOptions?.filename, plugin]) + htmlPlugins.map((plugin) => [plugin.userOptions.filename, plugin]) ).values(), ] const mergedPlugins = [...mergedHtmlPlugins, ...otherPlugins] diff --git a/package.json b/package.json index 84a2c02..0a994ba 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "minista", "description": "Mini static site generator that can be written in React (JSX) for web coding", - "version": "0.10.1", + "version": "0.10.2", "bin": { "minista": "cli.js" },