Skip to content

CSS @import and background-image path not resolved in Custom Elements #4394

@akibrk

Description

@akibrk

Version

3.2.4

Reproduction link

https://github.com/akibrk/custom-element-test/tree/css-issue

Steps to reproduce

Clone the repo -

  1. npm run install
  2. npm run build
  3. copy the output from dist into demo directory
  4. run npx http-server

What is expected?

Output with file path resolved, and img and css folders alongside the output files.

What is actually happening?

Path is not being resolved, no css/img folders generated.


Custom elements with static assets. Not able to load assets from node_modules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions