Skip to content

Components doesn't ship with images properly #278

@arvinsim

Description

@arvinsim

Current Behavior

I have been trying to create a react component with images for the purpose of reusing them across different apps.

However, when I build the library and import the component, the component works fine except all the images are not referenced properly

I also tried running Storybook and I got the same issue.

Expected behavior

Build process should ship images properly

Suggested solution(s)

Additional context

  1. I run tsdx build on the prepare script in the package.json
  2. I tried using babel-plugin-file-loader, rollup-plugin-url and rollup-plugin-image but they didn't work.

Your environment

Software Version(s)
TSDX 0.9.3
TypeScript 3.6.2
Browser Chrome Version 77.0.3865.120
npm/Yarn Yarn 1.19.1
Node 10.15.3
Operating System MacOS Mojave 10.14.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededkind: supportAsking for support with something or a specific use casescope: integrationRelated to an integration, not necessarily to core (but could influence core)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions