Skip to content

TypeError: Cannot use 'in' operator to search for 'html5' in true #346

@applemate

Description

@applemate

I got this error when trying to minify a simple html file

here is what the file look like

<!DOCTYPE html>
<html>
<head>
    <title>site</title>
    <meta charset='utf-8'>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<div id="app"></div>
</body>
</html>

here is my config

new HtmlWebpackPlugin({
            template: __dirname + '/app/template.html',
            filename: 'html/index.html',
            inject: 'body',
            hash: true,
            minify:true 
        })

if I remove the minify option, the process works fine. So there must be something wrong with minify option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions