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

No mixin named background #82

Open
wzup opened this issue Mar 14, 2016 · 1 comment
Open

No mixin named background #82

wzup opened this issue Mar 14, 2016 · 1 comment

Comments

@wzup
Copy link

wzup commented Mar 14, 2016

Error:

Module build failed:
undefined
                ^
      No mixin named background

And I've checked, there is indeed no background mixin in compass-mixins plugin. How can it be?

This is all the plugin offers:

@import "css3/background-clip";
@import "css3/background-origin";
@import "css3/background-size";
_grid-background.scss

And this is the mixin
http://compass-style.org/reference/compass/css3/images/#mixin-background

If any, I use your package in Webpack workflow. It is Webpack that throws the error.

@wzup
Copy link
Author

wzup commented Mar 14, 2016

Well, actually you have. But why it doesn't work?

Here it is, in this folder:
\compass-mixins\lib\compass\css3\_images.scss

This is how I use the mixin. Why loader cannot find it?

    .material-icon-custom {
        @include background(linear-gradient(white, #cccccc, #aaaaaa));
        @include background-clip(text);
        -webkit-text-fill-color: transparent;
    }

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

1 participant