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

Slow Sass compiling after F6 Upgrade #176

Closed
JeremyEnglert opened this issue Mar 2, 2016 · 5 comments
Closed

Slow Sass compiling after F6 Upgrade #176

JeremyEnglert opened this issue Mar 2, 2016 · 5 comments

Comments

@JeremyEnglert
Copy link
Owner

Reported on JointsWP.com - I'm noticing this as well.

It's taking between 6-10 seconds to complete the gulp styles task.

It appears to be caused by all of the includes from Foundation. If those are removed, the task completes in under a second.

I wonder if this can be fixed by changing how the files are referenced or if it's something we have to learn to live with when using F6.

@JeremyEnglert
Copy link
Owner Author

Note: This may be related to source-maps. As a user is reporting it works fine with Foundation 6.0.2 (which was prior to source-maps being added.

@bponghneng
Copy link

Not sure if there's anything useful in this note, but I got frustrated by this and plugged in my trusty Grunt scripts. Seems to run like normal without slowdown. Maybe it's a conflict with gulp-sass.

Cheers,
Robert

@JeremyEnglert
Copy link
Owner Author

That helps a lot actually. I'm thinking this is related to source-maps. Checking now.

@JeremyEnglert
Copy link
Owner Author

Looks like it is related to the sourcemaps: postcss/postcss#317

Which leads to an interesting discussion. Should we set the gulpfile to only run certain tasks when a production flag is added to a gulp command?

For example, with the styles task, a user could run gulp styles --production to have the styles minified and sourcemaps created.

@JeremyEnglert
Copy link
Owner Author

This will be added in the next version.

#185

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