question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Very Long Compile Times vs. Elixir

See original GitHub issue
  • Laravel Mix Version: 0.8.1
  • Node Version (node -v): 7.5.0
  • NPM Version (npm -v): 4.1.2
  • OS: MacOS 10.12.3 (16D32)

I’m getting very long compile times, averaging about 33s with npm run dev. I have one, single file Vue component, and and a main .scss that take roughly 15s each during compilation. Removing sourcemaps and versioning does not seem to affect build time. Using the default mix.config.

package

mix

time

I’d be happy to provide my .scss and .vue if needed, but I don’t believe I have anything out of the ordinary going on. I don’t recall how fast Elixir was compiling, but it was fast enough that I would not think anything of it. I had manually moved what I needed to a brand new Laravel 5.4 install, so I’d be pretty confident that I should not have any conflicts if that’s possible.

Thanks, and please let me know if I can provide you with any other relevant information.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
hamid-acommented, Feb 21, 2017

Same issue But when I changed mix version to 0.6 compile time became good I think the problem is in 0.7 and 0.8 versions

2reactions
narazincommented, Feb 24, 2017

It’s solved the same problem for me:

  1. use 0.8.7 version in package.json
  2. Add Mix.options:
mix.options({
    processCssUrls: false
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

Very long compile times for small changes - Elixir Forum
First everything was nice, but slowly the compile times increased. It got so bad that now small changes can take up to 30...
Read more >
How to speed up your Elixir compile times (part 1) - Medium
Run-time vs compile time. When you write Elixir code some of it will be run at compile-time, and some will be run at...
Read more >
Speeding up re-compilation of Elixir projects - Dashbit Blog
In Elixir v1.10 and earlier, imports were considered compile-time dependencies, so this change yielded large improvements in recompilation times ...
Read more >
Very Long Compile Times vs. Elixir · Issue #392 · laravel-mix ...
I'm getting very long compile times, averaging about 33s with npm run dev . I have one, single file Vue component, and and...
Read more >
Compilation really slow : r/elixir - Reddit
Compiling all the dependencies will take a while for the first time, especially on a laptop. 3 minutes doesn't sound out of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found