Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

235
Vistas
How to exclude spe.js files from mix.js()

I currently have this:

mix.js("./enterpath/**/*.js", "../../path/to/build/build.js");

We recently started to introduce tests in those folders for each js file test.spec.js

But now those files are also being compiled with the normal JS.

How do I tell mix to mix all *.js files except *.spec.js?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Well, this is not the best solution as it still compiles it, but at least I can choose not to include that file. This fixed my issue, but this shouldn't be the long-term solution:

mix.js("./enterpath/**/*.js", "../../path/to/build/build.js").extract(["spec"]);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda