Sharing assets across different NPM Workspaces

Viewed 17

I have an NPM Workspaces React project and I want to create an 'assets' workspace from which all my workspaces can import images and other assets. The dir structure will look like this:

project/
├─ assets/
│  ├─ public/
│  │  ├─ logo.png
├─ package1/
├─ package2/

My question is: In the aforementioned example what would a recommended way to use logo.png in package1?

0 Answers
Related