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 support @import "else.css" #223

Open
liSong5713 opened this issue Apr 7, 2020 · 0 comments
Open

no support @import "else.css" #223

liSong5713 opened this issue Apr 7, 2020 · 0 comments

Comments

@liSong5713
Copy link

liSong5713 commented Apr 7, 2020

//b.css

.a {
  color: blue;
}
.unuse-b {
  padding: 0 12rpx;
}

//a.css

@import './b.css';

// entry.js

var content = ['./test/a.html'];
var css =['./test/a.css']

var options = {
  //output: './dist/purified.css',

  // Will minify CSS code in addition to purify.
  //minify: true,

  // Logs out removed selectors.
  rejected: true,
};

console.log(purify(content, css, options));

//result

output @import './b.css';
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