Skip to content

Add Support for Import as String #35

Description

@javadbat

Clear and concise description of the problem

I have a web component-based design system that currently uses scss for handling styles pre-compile.
I want to switch to Lightning CSS, but the problem is your rollup bundler just creates a CSS file, but I need this code to work in my component

import CSS from './my-style.css'

What I want is CSS filled with the string value of my compiled CSS,l ike what I have in the scss compiler.
here is my code that only creates css file. https://github.com/javadbat/design-system/blob/d895c20e923b7be0b7c7456e3578e48e24c3f6b9/tasks/build/builder/src/web-component-builder.ts#L139

Suggested solution

I need some config like {inline:true} so I can import css file content inline in my code or add some ?inline like so i could import my css file compile result in inline variable

Alternative

No response

Additional context

No response

Validations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions