Giter VIP home page Giter VIP logo

Comments (4)

jakubpawlowicz avatar jakubpawlowicz commented on May 23, 2024

Hi @vmizgiris-equinix - what kind of CSS is it?

from clean-css.

vmizgiris-equinix avatar vmizgiris-equinix commented on May 23, 2024

@jakubpawlowicz, sorry - completely jumped my mind to mention this. This is lit-html template code, which in turn is JavaScript template literal strings. For example:

import { html } from 'lit-html';

render() {
  return html`<my-component style="--size: ${getSize()}px"></my-component>`;
}

My code uses the minify-html-literals plugin under the hook which in turn uses clean-css.

I've gotten around this issue by doing style=${style} and set up my style in a variable, but ideally this should work.

(Edited the issue title and description for clarity)

from clean-css.

vmizg avatar vmizg commented on May 23, 2024

Looks like there were a few other similar issues raised in the past, both using a similar syntax:

asyncLiz/minify-html-literals#31

asyncLiz/minify-html-literals#46

from clean-css.

vmizg avatar vmizg commented on May 23, 2024

@jakubpawlowicz, do you have any updates on this?

from clean-css.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.