Our Setup
I have a large-ish VueJS 2 project that I build and deploy via the standard npm run build
to an Azure AppService.
We recently added a way for customers to integrate some functionality into their site (basically they reference our JS file). I currently just have that js file sitting in \public so customers can reference it without pulling the full VueJS app.
Question
How can I minify that js file in \public? I'm open to moving it as long as I can treat it as a one-off asset that they can reference without pulling in the main project.
Bonus: I'd like to do this for a css file in public also, but my priority is the js file minification.
Priority
I'd like to keep the current build/deploy flow as simple as possible, and can't find out how to wire this into the Vue/Webpack flow.