什么是 .asar 文件以及为什么在电子应用程序中使用它

What is .asar file and why it's used in electron applications

所以问题在标题中。据我了解,.asar 是一种在电子应用程序中使用的存档文件。但它的目标是什么?

Asar 用于将您的应用程序文件连接到一个大文件,它可以缓解问题并略微加快 require.

To mitigate issues around long path names on Windows, slightly speed up require and conceal your source code from cursory inspection, you can choose to package your app into an asar archive with little changes to your source code.

web archive of original URL Electron en ebook