Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!