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

Fixs for Node 4 compatibility #29

Merged
merged 1 commit into from
Nov 28, 2015
Merged

Fixs for Node 4 compatibility #29

merged 1 commit into from
Nov 28, 2015

Conversation

sambonbonne
Copy link
Contributor

Hello,

STSS had some bug since I upgraded from Node 0.12 to 4.X, it seems that upgrade node-sass and making a little check that I describe bellow resolved the issue.

The problem was that sometimes, css2json received Buffer instead of String, and css-parse give this variable to css without check.
I tried to make a pull request to the css package to make it allow the use of a Buffer or a String, you can see it here : reworkcss/css#81

It seems that making this fix in STSS is a better idea, according to the css package author.

Of course I launched a npm test and all passed with Node 4.2.1, so if you accept my PR I'll be able to work with an official fix instead my manually applied patch, and other STSS users will be able to work with your tool with the latest NodeJS version.

Thanks in advance!
Best regards,
Samuel D

@dbankier dbankier mentioned this pull request Nov 26, 2015
RonaldTreur added a commit that referenced this pull request Nov 28, 2015
Fix for Node v4 compatibility + Node Sass upgraded to v3
@RonaldTreur RonaldTreur merged commit beb17c8 into RonaldTreur:master Nov 28, 2015
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

Successfully merging this pull request may close these issues.

2 participants