Reputation: 73
When I build my project, I can not find any css file. Unlike the documentation says.
vue-cli-service build --target lib --name myLib ***
I have three files : umd, umd.min and common. And un message : "Images and other types of assets omitted".
Is there a special vuecli configuration to do?
I am experiencing this problem since I add unit tests in the project
Upvotes: 1
Views: 1448
Reputation: 78
I had the same problem recently and the following solutions worked for me:
src/App.vue
:
import './assets/scss/main.scss';
package.json
file to target the entry file that imports the style:
vue-cli-service build --target lib --name index src/App.vue"
npm run build
or yarn run build
.The CSS file will appear.
Upvotes: 1