Skip to content

Commit

Permalink
fix: no-html option conditional correction
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Jan 20, 2022
1 parent e83ca9e commit 912e78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -60,7 +60,7 @@ export default class DynamicCdnWebpackPlugin {
this.htmlWebpackPlugin = (html && htmlWebpackPlugin) || undefined;

// Support for old way without passing htmlWebpackPlugin as an argument
if (htmlWebpackPlugin === undefined) {
if (html && htmlWebpackPlugin === undefined) {
try {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-require-imports
this.htmlWebpackPlugin = require('html-webpack-plugin');
Expand Down

0 comments on commit 912e78f

Please sign in to comment.