#How to minify Javascript in a remix application?

1 messages · Page 1 of 1 (latest)

loud gazelle
#

I wanted to minify javascript for my website audit in lighthouse. is there any way to minify the javascript in remix application. can anyone share any resources or tips as to how to achieve it

I have tried serverMinify:true, in my remix.config.js also i want the client side javascript to be minified as well

paper anvil
#

Notice that serverMinify might be a misnomer. I think this will minify both the server side and client side code. The documentation says that it minifies the build which should be both:

Whether to minify the server build in production or not. Defaults to false.