Subscribe on changes!

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

avatar
Aug 19th 2021

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.

avatar
Aug 31st 2021

Bump.

avatar
Sep 3rd 2021

You have to create these folders by yourself.

avatar
Sep 7th 2021

Folders aren't the big issue, it's the path to the files.