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

Fix support for include paths #31

Merged
merged 3 commits into from
Feb 7, 2020
Merged

Fix support for include paths #31

merged 3 commits into from
Feb 7, 2020

Conversation

eerohele
Copy link
Contributor

@eerohele eerohele commented Nov 8, 2019

I wanted to install Bulma via NPM, add node_modules into :source-paths and include the Bulma SASS files in my project SCSS files, but that didn't work. Turns out that was because when calling via the sass4clj.api namespace, :source-paths were getting removed from the options map and not getting added into include paths.

I also made a couple of changes that make it easier to use sass4clj as a Git dependency. Two issues remain there: sass4clj has a kind of an implicit dependency to both Component and Integrant, but neither are included in deps.edn. They're marked as test dependencies in build.boot, which is a bit odd — should they be :provided instead?

Prior to this, the sass4clj CLI or using sass4clj as a Git dep failed
with this error:

    Syntax error (ClassNotFoundException) compiling at (sass4clj/core.clj:1:1).
        io.bit3.jsass.Sass2ScssOptions

Presumably because this fix wasn't included in jsass 5.5.2, which is
what deps.edn used prior to this commit.
Previously, :source-paths were dissoc'ed from the options map, in
sass4clj.api call sites, preventing them from being added into the
include paths.
I think consumers should be able to pick their own slf4j implementation.
@Lotbert
Copy link

Lotbert commented Jan 19, 2020

i have the same problem and just recognized that it seems to be fixed here :). Is there a reason behind why the fix didnt find the way into a release yet?

@Deraen Deraen merged commit 3255c87 into Deraen:master Feb 7, 2020
@Deraen
Copy link
Owner

Deraen commented Feb 7, 2020

Released in 0.7.3.

@eerohele eerohele deleted the patch/fix-include-paths branch February 12, 2020 13:28
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.

3 participants