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

221
Visualizações
How can Javascript understand Vue file?

I've just started to learn Vue and I wonder, how is it made? I see in the begining of main.js

import Vue from 'vue'
import App from './App.vue'

and the content of App.vue is not Javascript at all. How is it made to be understandable by Javascript?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

When using .vue files in a Vue application, it is necessary to use the vue-loader dependency. This library is a loader for webpack that allows you to create Vue components in a Single-File Components format.

Documentation:

There are many cool features provided by vue-loader:

  • Allows using other webpack loaders for each part of a Vue component, for example Sass for and Pug for .
  • Allows custom blocks in a .vue file that can have custom loader chains applied to them.
  • Treat static assets referenced in and as module dependencies and handle them with webpack loaders.
  • Simulate scoped CSS for each component.
  • State-preserving hot-reloading during development.
about 4 years ago · Juan Pablo Isaza Relatório
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