Skip to content

Using the write to options makes the bundled index.html file point to the incorrect js files. #26

@danielo515

Description

@danielo515

Hello, thanks for this plugin.
I noticed a weird behavior when using the writeTo function. For some reason, when I set it up like the snippet below, my produced index.html file points to the wrong js files. If I remove this plugin or that option then it works fine.

          analyzer({
            showExports: false,
            limit: 10,
            writeTo(analysis) {
              fs.writeFileSync('./stats.html', `<pre><code>${analysis}</code></pre>`);
            },
          }),

regards

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