Can webpack4 directly reference js in template html?

clipboard.png
for example, how can I make sure that aa doesn"t need to be packaged and can be referenced directly? -sharp-sharp-sharp problem description

Mar.20,2022

if it's a cdn address, you can just quote it. If it is a resource code file, you can add an extra entry. Adding this chunk, or splitChunkPlugin in htmlWebpackPlugin also has some coquettish operations that should also be implemented


just write it to death in the template file, ah, it will be copied along with this when packaging.

Menu