v-bind image src to dynamic image links

Because v-bind:src or simply :src is not recognized by webpack thus the images are not loaded and compiled to dist. One way to solve the problem is by using the require.context provided by webpack. getUrl (id) { var images = require.context(‘../assets/images/photos/’, false, /\.jpg$/) var imgArray = this.carouselImages if (id === 1) { return images(‘./’ + […]