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

156
Visualizações
gulp-uglify causes constructor.name misbehaviour

In my gulpfile.js if I comment this line

.pipe(uglify({ preserveComments: 'some'}))

then my code is not looking ugly and for following line of code everything is working fine.

if(Mystudy.constructor.name != "MyStudyView")

but if I uglify my code using gulp-uglify(without commenting that uglify code on top) then the above line looks something like this

if ("MyStudyView" != e.constructor.name)

and value of e.constructor.name is also getting ugly like "e" instead of the "MyStudyView".

I want to run my code the same way as it was working without uglifying and I don't want to compromise on the uglify as well, is there any way that I can achieve what I want?

Extra information: That "if" condition code is written in the filename of mystudy.js and under the function closeIt

about 4 years ago · Santiago Gelvez
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