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

@import statement was automatically inserted "url()" #1268

Open
WangZhenHao opened this issue Jan 11, 2024 · 0 comments
Open

@import statement was automatically inserted "url()" #1268

WangZhenHao opened this issue Jan 11, 2024 · 0 comments

Comments

@WangZhenHao
Copy link

Environment

  • clean-css version - ^5.3.3:
  • node.js version - v18.18.2:
  • operating system: win 10

Configuration options

const css = "@import '../commont.wxss'; .test{ font-size: 12px; }"

console.log(new CleanCSS({inline: false }).minify(css))

Actual output CSS

@import url(../commont.wxss);.test{font-size:12px}

Expected output CSS

@import '../commont.wxss';.test{font-size:12px}

Desc

I'm only just want to minify my CSS code, but clean-css will automatically inserted "url()" keywork for my code.

I'm use option inline: false, but It don't work! How can I resolve this problem? Thanks!

@WangZhenHao WangZhenHao changed the title @import statement are automatically inserted "url()" @import statement was automatically inserted "url()" Jan 11, 2024
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