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

206
Visualizações
How to remove multiple spaces and line breaks from the library after building?

In one new project, I found that eslint and prettier do something like this in some places:

<button
  v-for="(item, index) in items"
  :key="index"
  class="
    block
    w-full
    bg-white

That is, the classes are "built" in a column.

I understand that this behavior can be turned off, but...

In the generated code, these classes look like this:

{key:r,staticClass:"\n      block\n      w-full\n      bg-white\n      

The library is built by vue-cli-service. Is there any way (more or less out of the box) to clean this up?

And do you think this is rubbish, because in the user's browser in the source code of the page, these classes will also be arranged in a column?

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