Answer the question
In order to leave comments, you need to log in
How to set up externals in webpack?
For the carousel on the site I use jq plugin Slick-carousel.
import $ from 'jquery';
import 'slick-carousel';
$('.subscribe-slider').slick({
...
config.externals = [
{
vue: 'Vue',
jquery: 'jQuery',
vuex: 'Vuex',
},
'slick-carousel'
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question