We have a relatively boilerplate Nuxt.js application, deployed with the "firebase" preset of Nitro to Firebase hosting.
In addition to the JavaScript that makes up the application itself, we have a file in public/embed.js that is intended to be referenced by third parties (it is used to facilitate embedding of a widget on their website).
I would like the embed.js
file to be tersed/minified during the build process, so that anyone that requests it receives a minified version. Currently, the file seems to be copied from public/embed.js
to the .output/public
directory without modification.
Can this be done with configuration options, and if so, how?