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

multi @charset not removed #15

Open
wojewsky opened this issue Jun 19, 2013 · 1 comment
Open

multi @charset not removed #15

wojewsky opened this issue Jun 19, 2013 · 1 comment

Comments

@wojewsky
Copy link

I'm using yuglify with --terminal.
Input:

@charset "UTF-8";
@media all {
  DIV.test1 {
    background: white;
  }
}
@charset "UTF-8";
@media all {
  DIV.test2 {
    background: red;
  }
}
@charset "UTF-8";
@media all {
  DIV.test3 {
    background: black;
  }
}

Output:

@charset "UTF-8";@media all{DIV.test1{background:white}}@charset "UTF-8";@media all{DIV.test2{background:red}}@media all{DIV.test3{background:black}}

Only one @charset was removed...

@natevw
Copy link
Contributor

natevw commented Oct 17, 2017

Wouldn't this be an issue with https://github.com/jbleuzen/node-cssmin? This is just a wrapper for it.

The relevant code looks like it might be at https://github.com/jbleuzen/node-cssmin/blob/41d9b6755f8c5c9638008f860a52a5e8423d1734/cssmin.js#L139 and you might have better luck filing a new issue over on that project.

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

2 participants