How can we configure a utility?
kireerik opened this issue · comments
Erik Engi commented
Using compress({js: {comments: false}})
I am getting the following error when executing astro build
:
Error: Cannot compress file <filepath>!
Using
compress()
(orcompress({js: true})
) works, but there aresome
comments (as expected sincesome
is the default setting).
Nikola Hristov commented
Interesting, I'll look into it.
Nikola Hristov commented
Hi @kireerik, can I reach you offline for more information, my Discord is nikolahristov#1833. Thank you!
Erik Engi commented
I can't seem to find you on Discord like that. Maybe it is easier to ask for more information here.
Erik Engi commented
I sent a friend request.
Erik Engi commented
This terser setting goes under the format
options.
So it works like this as expected: compress({js: {format: {comments: false}}})
Erik Engi commented
This is not a bug.