0👍
✅
You must treat vue-element
as an external dependency for your library. Explicitly state it as a dependency. It means your library should assume that calling project i.e. the main project will load the CSS prior to loading CSS of your library.
This is how most projects structure CSS. Your HTML file would be something like this:
<!-- External CSS -->
<link href="vue-element/dist/style.css" />
<!-- Library CSS -->
<link href="path-to-your-library/dist/style.css" />
Source:stackexchange.com