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

81
Visualizações
How to join select Browserify bundles together after Factor-Bundle?

I'm using Factor-Bundle with Browserify to generate multiple partial bundles and a larger common.js file with all of the common requirements. However, one of the partial bundles corresponds to my main entrypoint, main.js which I would actually like to contain all of common.js so that I have one main file with all the common JS and the main contents of my app, and then the other partial bundles correspond to sub-apps.

To clarify, I am trying to go from these entry points:

  • main.js
  • sub-app1.js
  • sub-app2.js

to this:

  • main.js (INCLUDING ALL COMMON REQUIREMENTS)
  • sub-app1.js (only code and require()s unique to sub-app1)
  • sub-app2.js (only code and require()s unique to sub-app2)

But Factor-Bundle gives me:

  • common.js // <- can I merge this with main.js somehow???
  • main.js
  • sub-app1.js //good
  • sub-app2.js //good

Unless there's some hidden option in Browserify or Factor-Bundle to generate them how I want, my next guess is there might be some Browserify function that would simply let me merge two generated packages back into one? I can't simply browserify.bundle(common.js, main.js) after the fact because those bundled files are in different locations and I get errors that it can't locate the relative file paths anymore.

Any ideas?

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