zodern / minify-js-sourcemaps

Meteor package to minify js and create production sourcemaps
Other
39 stars 10 forks source link

combining with montiapm breaks HCP when using --production #40

Open namenotrequired opened 1 year ago

namenotrequired commented 1 year ago

This bug happens only when running meteor --production but I'm not sure it happens on actual build/deploy. I stumbled upon it while looking for another bug. But I figured you'd want to know

Steps to reproduce:

$ meteor create reproduce --blaze
$ cd reproduce
$ meteor remove standard-minifier-js
$ meteor add zodern:standard-minifier-js
$ meteor add montiapm:agent
$ meteor --production

Or replace montiapm:agent with montiapm:profiler for the same result

Result: the browser refreshes to a blank page, with an error in the console that it failed to fetch the javascript

zodern commented 1 year ago

I've seen this issue too. The build on disk seems correct, but the running app returns a 404 for the new js file.