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

How to configurate sprites using compass-mixins? #92

Open
Flourad opened this issue Jun 3, 2016 · 4 comments
Open

How to configurate sprites using compass-mixins? #92

Flourad opened this issue Jun 3, 2016 · 4 comments

Comments

@Flourad
Copy link

Flourad commented Jun 3, 2016

  1. In the webpack.config.js,i add the loader configuration:
    { test: /\.scss$/, loader: 'style!css!sass?includePaths[]=' + './node_modules/compass-mixins/lib' }
  2. My directory list:
    image
    The _image.scss file:
    @import "compass/utilities/sprites"; @import "icon/*.png"; @include all-icon-sprites;

3.when i run webpack, the command-line alert errors below:
image

@DavidAlphaFox
Copy link

Dear author!
I have same problems.
Should I ask this question in sass-loader project?

@Flourad
Copy link
Author

Flourad commented Jun 27, 2016

@DavidAlphaFox I have given up sprites in compass-mixin, instead i use the url-load to process the images in my project now~

@vova84
Copy link

vova84 commented Feb 27, 2017

I have same issue.
@import "compass/utilities/sprites";
@import "/htdocs/img/payment-icons/*.png";
@include all-payment-icons-sprites(true);

@import "/htdocs/img/payment-icons/.png";
^
File to import not found or unreadable: /htdocs/img/payment-icons/
.png.

@gatodeveloper
Copy link

Hello @Flourad some update here?

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

4 participants