jharris4 / html-webpack-tags-plugin

lets you define html tags to inject with html-webpack-plugin
MIT License
256 stars 31 forks source link

Added missing webpack peer dependency #71

Closed slavafomin closed 3 years ago

slavafomin commented 3 years ago

The html-webpack-tags-plugin hasn't specified webpack as a peer dependency. This lead to problems, because strict package managers can't resolve and install the correct dependency. This PR adds this missing dependency and fixes this problem.

slavafomin commented 3 years ago

pnpm workaround

If you are using pnpm, you can temporarily fix this problem using the following pnpmfile.js:

module.exports = {
  hooks: { readPackage },
};

function readPackage($package, context) {
  if ($package.name === 'html-webpack-tags-plugin') {
    $package.peerDependencies.webpack = '^5.0.0';
  }
  return $package;
}