Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fix: catch failing require of html-webpack-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JeandeCampredon committed Nov 5, 2019
1 parent 350f409 commit 9c1cdf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/generators/tapable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { buildResources, injectResources, generateHtmlTags, generateAppleTags, g
let HtmlWebpackPlugin;
try {
HtmlWebpackPlugin = require('html-webpack-plugin');
} catch (e) {
if (process.env.NODE_ENV === 'development') {
console.log('it seems like you are not using html-webpack-plugin');
}
} finally {}

function getBeforeProcessingHook(compilation) {
Expand Down

0 comments on commit 9c1cdf5

Please sign in to comment.