LESS Compilation take time!

Hi guys,

I test again meteor, and I’m facing a problem right now with the compilation time.

When I modify a file on the client, meteor refresh after a long time, and during that, I canot reload the page.

I activate the profiling to see the times, and I see that :

START 1 building for web.browser
     START 2 linking the program
     DONE 2 linking the program took 7
     START 2 processing files with ecmascript (for target web.browser)
     DONE 2 processing files with ecmascript (for target web.browser) took 183
     START 2 processing files with templating-compiler (for target web.browser)
     DONE 2 processing files with templating-compiler (for target web.browser) took 4
     START 2 processing files with meteor (for target web.browser)
     DONE 2 processing files with meteor (for target web.browser) took 37
     START 2 processing files with fourseven:scss (for target web.browser)
     DONE 2 processing files with fourseven:scss (for target web.browser) took 1
     START 2 processing files with less (for target web.browser)
     DONE 2 processing files with less (for target web.browser) took 17661
     START 2 processing files with universe:i18n (for target web.browser)
     DONE 2 processing files with universe:i18n (for target web.browser) took 1
     START 2 minifying app code
     DONE 2 minifying app code took 2
     START 2 minifying app stylesheet
     DONE 2 minifying app stylesheet took 2
   DONE 1 building for web.browser took 19852
   START 1 building for web.browser.legacy
     START 2 linking the program
     DONE 2 linking the program took 16
     START 2 processing files with ecmascript (for target web.browser.legacy)
     DONE 2 processing files with ecmascript (for target web.browser.legacy) took 540
     START 2 processing files with templating-compiler (for target web.browser.legacy)
     DONE 2 processing files with templating-compiler (for target web.browser.legacy) took 6
     START 2 processing files with meteor (for target web.browser.legacy)
     DONE 2 processing files with meteor (for target web.browser.legacy) took 77
     START 2 processing files with fourseven:scss (for target web.browser.legacy)
     DONE 2 processing files with fourseven:scss (for target web.browser.legacy) took 0
     START 2 processing files with less (for target web.browser.legacy)
     DONE 2 processing files with less (for target web.browser.legacy) took 22493
     START 2 processing files with universe:i18n (for target web.browser.legacy)
     DONE 2 processing files with universe:i18n (for target web.browser.legacy) took 10
     START 2 minifying app code
     DONE 2 minifying app code took 1
     START 2 minifying app stylesheet
     DONE 2 minifying app stylesheet took 1
   DONE 1 building for web.browser.legacy took 24729

We can see that the processing of less file is soooo long.
I have updated my old kickstater to meteor 1.7.0.5 (https://github.com/Themandunord/Mantra-Kickstarter-2) and the problem occured on this project.

Do you see why it’s happened? How to resolve that?

So now, with Meteor 1.7, we need to build both the legacy and modern bundle during the development?

I have removed all my *.less files to see if something happened, but nothing, same behavior.
If I remove the less package, everything is much faster…

I use ant design as react framework, who use less, so I need that :confused: