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

Error on @import [file.css] [media] #17

Closed
rpennacchio opened this issue Aug 27, 2014 · 7 comments · Fixed by #19
Closed

Error on @import [file.css] [media] #17

rpennacchio opened this issue Aug 27, 2014 · 7 comments · Fixed by #19
Labels

Comments

@rpennacchio
Copy link

Hi,
I have an issue, on css-mqpacker.js, line 13 ( 'a' variable is undefined ), when I import some css files with a @import mediqueried rule.
exemple :
@import "file1.css" screen;
@import "file2.css" screen;
@import "file3.css" screen;

Regards,
Romain.

@hail2u
Copy link
Owner

hail2u commented Aug 27, 2014

CSS MQPacker doesn't touch @import rules. Your example code don't output any errors on my machine.

@import "file1.css" screen;
@import "file2.css" screen;
@import "file3.css" screen;

Do you have another example?

@hail2u hail2u added the bug label Aug 27, 2014
@rpennacchio
Copy link
Author

Hi,
Sorry, I haven't an other example.
I have an error when I compile css files with the package Pleeease.

@iamvdo
Copy link

iamvdo commented Aug 28, 2014

Can you give us your CSS? Are you using CLI or not?

@rpennacchio
Copy link
Author

Sure, this is my css (juste for test) :

@charset "UTF-8";
@import "_variable.css";
@import "_font.css" screen;
@import "_structure.css" screen;

There's nothing in the called css files.

@hail2u
Copy link
Owner

hail2u commented Aug 28, 2014

Still can't reproduced.

@hail2u
Copy link
Owner

hail2u commented Aug 28, 2014

Maybe this bug is related to postcss/postcss#85. I'm working on it.

hail2u pushed a commit that referenced this issue Aug 28, 2014
Just leave everything to PostCSS. This could fix #17. This fixed test
also resolve #18.
@rpennacchio
Copy link
Author

Work fine now, thanks ! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants