Bundle-visualizer and force-ssl

When I attempt to run bundle-visualizer in --production mode, the force-ssl package redirects to https and without a port number, so I can’t actually see anything.

Removing force-ssl works, but this is a pain. How can I get this to work without removing force-ssl every time?

Maybe there should be a --temp-remove flag that can be paired with –extra-packages?

Maybe you could do something like this:

but also check an environment variable as to whether or not to include the force-ssl package?

I was thinking the same thing for --remove-packages as I am using zodern’s fork of the JS minifier to get source maps and I need to replace it with the standard Meteor one to use the bundle visualizer

1 Like