manusa / isotope-mail

Isotope Mail Client
https://blog.marcnuri.com/isotope-mail-client-introduction/
Apache License 2.0
237 stars 44 forks source link

styles compilation for 60sec #343

Open shift-reality opened 4 years ago

shift-reality commented 4 years ago

Today i tried to compile client with hot-reload module. JS change take about 3s-5s for apply, but styles recompile project fully... What i should to do in this situation? Or this okay?

shift-reality commented 4 years ago

build approax 10 minutes

manusa commented 4 years ago

That's pretty awkward. Are you using the provided package.json scripts (i.e. npm start).

NPM build command in CI environment takes ~45 seconds (https://travis-ci.org/manusa/isotope-mail/jobs/622218689#L597)

A global style change (such as changing one of the theme colors) takes < 14 seconds in my old home laptop...

image

Please provide more details, and also make sure you don't have an active antivirus scanning your project directory file changes (will drain performance of any npm project -> thousands of files to analyze)

shift-reality commented 4 years ago

yes, i use "start" But when i tried change at least 1 line of scss...webpack recompile project fully instead of recompile only changed file

shift-reality commented 4 years ago

what i should to do?

shift-reality commented 4 years ago

i need fast recompile on the fly My project on VUE.JS apply changes in less than 1 second with webpack 4 devserver hot-reload plugin....

shift-reality commented 4 years ago

and approax 60 deps in package.json

shift-reality commented 4 years ago

because only styles changed, not recompile project fully