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

Conflicts with compass-normalize? #57

Closed
adi518 opened this issue Mar 30, 2016 · 2 comments
Closed

Conflicts with compass-normalize? #57

adi518 opened this issue Mar 30, 2016 · 2 comments

Comments

@adi518
Copy link

adi518 commented Mar 30, 2016

Hi,

I was using Compass-normalize in an old project. When I was looking for a normalize component, I inadvertently skipped this one and went with the first. For a new project though, I wanted to make sure I'm using this repo, as it's maintained and updated frequently (Compass-normalize is a few years old without any recent updates). So I switched the require statement in config.rb from 'compass-normalize' to 'normalize-scss' and figured I'm good to go. Then, a closer look at my css output, reveals a horrible bug (or feature?). The css output remains that of "compass-normalize". I enabled source comments to find out where the css emits from, and it's most definitely coming from gems/compass-normalize. I have no idea why it does that when I altered my require statement. It seems like uninstalling 'compass-normalize' fixes it, but I cannot uninstall it, as it's a dependency in some of my older projects.

Anyone moving from that old normalize repo to this repo, read the usage instructions carefully. While the old one requires a simple import statement 'import "normalize"', this one requires another line "include normalize()" which of course, calls a mixin. I also didn't notice 'support-for' is required, since I simply switched the require statement and my code compiled just fine. It's up until I noticed the css output is that of "compass-normalize".

Any solution or just a compass bug?

Thanks.

@JohnAlbin
Copy link
Owner

I suspect that you aren't using Bundler. Bundler allows you to manage your Ruby Gem dependencies per project. That's crucial when different project require different versions of a Gem. And I suspect it will fix the problem of compass-normalize and normalize-scss having a _normalize.scss partial.

http://bundler.io/rationale.html

@adi518
Copy link
Author

adi518 commented Mar 31, 2016

Ok, Bundler indeed solves the problem. Since I'm using Grunt to watch my sass files, I also had to pass 'bundleExec: true' to contrib-compass. :)

@adi518 adi518 closed this as completed Mar 31, 2016
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