Skip to content

Plugging in CSS preprocessor in component files #20

@p3k

Description

@p3k

What would be the best way to enable CSS dialects like LESS or SASS in a component file’s <style> element?

Example (LESS):

<div class='foo'>Hello, World!</div>

<style>
  @color: yellow;

  .foo {
    background-color: @color;
  }
</style>

The content’s of the <style> element should then be compiled to this (and then of course further processed as scoped component CSS):

.foo {
  background-color: yellow;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions