Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styles compilation for 60sec #343

Open
shift-reality opened this issue Dec 12, 2019 · 7 comments
Open

styles compilation for 60sec #343

shift-reality opened this issue Dec 12, 2019 · 7 comments

Comments

@shift-reality
Copy link

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
Copy link
Author

build approax 10 minutes

@manusa
Copy link
Owner

manusa commented Dec 15, 2019

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
Copy link
Author

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
Copy link
Author

what i should to do?

@shift-reality
Copy link
Author

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
Copy link
Author

and approax 60 deps in package.json

@shift-reality
Copy link
Author

because only styles changed, not recompile project fully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants