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

Require node-sass on first access to gulpSass.compiler #791

Closed
wants to merge 2 commits into from

Conversation

duzun
Copy link

@duzun duzun commented Mar 30, 2021

I want to use this plugin with sass, not node-sass, but the line with require('node-sass') throws an error, before I have the chance to gulpSass.compiler = require('sass');.
The error message says:
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 14.x

This PR should fix the issue transparently.

I would also prefer not to include the node-sass lib as a dependency, maybe a peer-dependency.

I want to use this plugin with `sass`, not `node-sass`, but the line with `require('node-sass')` throws an error, before I have the chance to `gulpSass.compiler = require('sass');`.
The error message says:
`Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 14.x`

This PR should fix the issue transparently.
@duzun duzun mentioned this pull request Apr 13, 2021
@xzyfer
Copy link
Collaborator

xzyfer commented Jun 15, 2021

Thanks all, close this to focus efforts on #802 which is more rounded at this point in time.

@xzyfer xzyfer closed this Jun 15, 2021
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.

None yet

2 participants