0👍
The problem is, that you using a relative path. What you need is to add a ref to your src
folder, to tell vue-cli
, that you want to include it in your production build.
<style>
@import './assets/styles/vue-multiselect.min.css';
</style>
The @
refers your src path. Where you store it or what you call your folders is up to you.
EDIT: Another approach could be to reinstall the package with this command:
npm install vue-multiselect@next --save
Or just import it like you do with the component:
import Multiselect from 'vue-multiselect'
import 'vue-multiselect/dist/vue-multiselect.min.css'
EDIT 2: vue.config.js
, create this file in your root
. The content should be:
module.exports = {
publicPath: './'
};
- [Vuejs]-Laravel View – Import Vue component
- [Vuejs]-Vue.js iterate a list of objects and display on <a> tag
Source:stackexchange.com