Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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