Skip to content

templateContent field causes abnormal behaviour of yauzl module (!?) #1871

Open
@SinusPi

Description

@SinusPi

This is quite likely not html-webpack-plugin's fault, but a peculiar behaviour I observed quite consistently.

Situation: html-webpack-plugin @3.2.0, Electron @7, Node @12. Ancient stuff. But do read on.

State 1: App works like a charm. Unzips a static zip as part of its functionality.
Change: I add "templateContent": "foo" to a webpack config file, and build a production app.
State 2: App's extract-zip module, using yauzl module, gets bogus filenames from the zip.

Remove templateContent, app's back to normal. Add even an empty string "", app gets malformed zip filenames again.

This might be an ancient problem, but WHY would it appear is a mystery - but perhaps the underlying problem is still in there?

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