Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
Electron: Should I still consider asar if I am already using a bundler (Webpack)?

The electron-packager docs mention three reasons why I might want to consider packaging my app into an asar archive (the Electron-specific archive format):

  1. Avoid issues with long path names on Windows
  2. Speed up require() calls in my code
  3. Make it slightly harder for the end user to inspect the source code (they have to first download asar and un-archive the app)

Now, I am already using Webpack, which already bundles all my JS into one file, so:

  1. No long nested path names -> No long path name issues on Windows
  2. No require() calls in the code -> Nothing to speed up
  3. I can minify and uglify the code -> Already pretty obfuscated

On the flipside, it seems to me that using asar could potentially be a risk, because it adds another layer of logic. It's an abstraction that could leak.

What am I missing?

Are there reasons why I should still consider asar, even when using Webpack?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda