Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it dead? what about webpack 4? #11

Open
a-x- opened this issue May 29, 2019 · 1 comment
Open

is it dead? what about webpack 4? #11

a-x- opened this issue May 29, 2019 · 1 comment

Comments

@a-x-
Copy link

a-x- commented May 29, 2019

      compilation.hooks.htmlWebpackPluginBeforeHtmlProcessing.tap(
TypeError: Cannot read property 'tap' of undefined
    at compiler.hooks.compilation.tap.compilation (/Users/mxtnr/rocket/felix-front/node_modules/interpolate-html-plugin/index.js:35:63)
@a-x-
Copy link
Author

a-x- commented May 29, 2019

webpack -v 4.32.2
html-webpack-plugin@3.2.0

const HtmlWebpackPlugin = require('html-webpack-plugin');
const InterpolateHtmlPlugin = require('interpolate-html-plugin');
...
[
// ...

      new InterpolateHtmlPlugin(process.env),
      // Generates an `index.html` file with the <script> injected.
      new HtmlWebpackPlugin({
        inject:   true,
        template: appHtmlPath,
        minify:   {
          removeComments:                true,
          collapseWhitespace:            true,
          removeRedundantAttributes:     true,
          // useShortDoctype:               true, -- it's already short
          removeEmptyAttributes:         true,
          removeStyleLinkTypeAttributes: true,
          keepClosingSlash:              true,
          minifyJS:                      true,
          minifyCSS:                     true,
          minifyURLs:                    true,
        },
      }),
    ]
// ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant