Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

webpack TypeError: Cannot use 'in' operator to search for 'include Auto Generated Tags' in true #7

Open
XiaoLiz opened this issue Oct 14, 2016 · 5 comments

Comments

@XiaoLiz
Copy link

XiaoLiz commented Oct 14, 2016

webpack npm run build Error

image

@myNameIsPete
Copy link

I can confirm I am getting this error too.

@rbatllet
Copy link

the minify: BUILD option is invalid according to https://github.com/kangax/html-minifier#options-quick-reference

    config.plugins.push(
      new HtmlWebpackPlugin({
        template: './src/index.html',
        inject: 'body',
        minify: BUILD
      })
    );

You can replace it, for example by:

    config.plugins.push(
            new HtmlWebpackPlugin({
                template: './src/index.html',
                inject: 'body',
                minify: {
                    removeAttributeQuotes: true
                }
            })
    );

@rbatllet
Copy link

I've created a pull request #8 to solve it

@rbatllet
Copy link

This pull request #9 upgrades the webpack-demo to Babel 6

@myNameIsPete
Copy link

Works like a charm. Thanks a lot.

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

No branches or pull requests

3 participants