Support the ongoing development of Laravel.io →
Configuration
Last updated 2 years ago.
0

I don't get this slow on npm run watch. My Laravue project takes ~0.5s on recompiling:

 WAIT  Compiling...                                                                                                                                                                                                                 7:14:05 AM

98% after emitting SizeLimitsPlugin

 DONE  Compiled successfully in 464ms                                                                                                                                                                                               7:14:05 AM

       Asset      Size   Chunks             Chunk Names
/css/app.css   240 KiB  /js/app  [emitted]  /js/app
  /js/app.js  15.6 MiB  /js/app  [emitted]  /js/app
 + 11 hidden assets

Does it happen to you on fresh Laravel?

0

Hello, thanks for your answer. I had more precision on the problem :

  • app.js compile : 0.3s
  • app.scss compile: 5s After extract of this code from my app.scss, the compilation take 0.4 sec :) :
/* Nunito:200 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200;
  src: url(/fonts/Nunito-ExtraLight.ttf) format('truetype');
}

/* Nunito:600 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  src: url(/fonts/Nunito-SemiBold.ttf) format('truetype');
}

NB : someone can explain me how work the "code tag" ? impossible to use it...

Last updated 5 years ago.

tuandm liked this reply

1

@bArraxas: You can wrap your code to triple ` (Like markdown syntax on Slack)

barraxas liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

bArraxas barraxas Joined 5 Dec 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.