Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danielo515 opened this issue Jan 21, 2022 · 0 comments

Comments

@danielo515
Copy link

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

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

No branches or pull requests

1 participant