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

145
Visualizações
parcel js bundle different when building from WINDOWS compared to my MAC

Working on a web game and I use parcel.js to bundle my files.

My current workflow is to use my beefy windows PC for local development and when I want to deploy to production, I pull down my changes on my macbook and deploy there.

For some reason I don't know why, when running my build script: "parcel:build": "yarn cross-env NODE_ENV=production && parcel build src/index.html --no-cache --no-source-maps --public-url replacethislinewithadot && sed -i '' 's/replacethislinewithadot/./g' dist/*.html dist/*.css" produces different results on windows vs mac. (THIS IS WHERE I FOUND THIS HACK: https://github.com/parcel-bundler/parcel/issues/206)

I wrote this script a like 4 years ago and don't recall 100% what the intention was with sed. I believe css and js files didn't have relative path to the files in the HTML which broke the web game when uploading it.

Running the build script now gives me this error: sed: can't read s/replacethislinewithadot/./g: No such file or directory while working perfectly on my mac.

Would love to know why this works like it does.

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