I'm currently using vue-cli3 for the npm publication of a Vue component.
Below are my build scripts:
"package-build": "eclint fix && vue-cli-service build --target lib --name @xchat-component/chat-component ./src/index.ts && shx cp ./src/index.d.ts dist/index.d.ts",
After importing this component into other projects, I noticed that all functions work as expected but the styling is not being applied.
Upon further investigation, I discovered that the CSS file is located in
node_modules/component/dist/component.css
https://i.stack.imgur.com/vNDwn.png
Does anyone have a solution to this issue? Your help would be much appreciated. Thank you!