I have a custom module called Quicklink it has its own JS files and external JS files too, I've added an external JS from a third-party CDN, but when I enable the JS minification in a Magento 2 clean installation, it turns all files into minified, not just my JS files, which causes issues with the external script.
// File path: Rafaelcg/Quicklink/view/frontend/requirejs-config.js
var config = {
map: {
'*': {
quicklink: 'https://cdnjs.cloudflare.com/ajax/libs/quicklink/2.0.0/quicklink.umd.js',
polyfillio: 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver'
}
}
};
How could I avoid the minification only in the external JS files?