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

Make Sass implementation agnostic ( supporting dart-sass ) #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fsubal
Copy link

@fsubal fsubal commented Oct 8, 2018

Resolves: #16


I made this library to be sass-implementation agnostic, that means, add support for dart-sass.

With these changes, node-sass-asset-functions now accepts implementation option ( which excepts require('node-sass') or require('sass'), and when absent it will be implicitly node-sass )


For some reason the test is not passing ( Maybe dart-sass cannot read file correctly, even though the path looks correct ), which is now I'm searching why... Help wanted by someone.

})
})
})
describe.each(['node-sass', 'sass'])('with require("%s")', function(impl) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently installed version of jest did not support describe.each, so I updated jest

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record, the test failure was not due to the jest version ( it also failed with [email protected] with ['node-sass', 'sass'].forEach instead of describe.each )

@marlonmarcello
Copy link

Love this, can we get it merged @koenpunt ?

Copy link
Contributor

@koenpunt koenpunt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see I still have a pending review comment here.

options = options || {}
options.images_path = __dirname + '/images'
options.fonts_path = __dirname + '/fonts'
options.implemantation = sass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
options.implemantation = sass
options.implementation = sass

@ghost
Copy link

ghost commented Feb 29, 2024

hey folks, can this PR get merged in? would be super helpful since node-sass is basically decrepit at this point

@ghost
Copy link

ghost commented Feb 29, 2024

for those who want to install this now

npm i --save-dev fetch/node-sass-asset-functions#pull/17/head
"devDependencies": {
  "node-sass-asset-functions": "github:fetch/node-sass-asset-functions#pull/17/head",
}

@koenpunt
Copy link
Contributor

koenpunt commented Feb 29, 2024

I've released a new version to npm that replaces node-sass with sass (Dart Sass). Development will continue in this fork: https://github.com/koenpunt/node-sass-asset-functions

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.

Supporting option for dart-sass ? ( or drop node-sass as dependency )
3 participants