Answer the question
In order to leave comments, you need to log in
How to connect JqueryUI to VueJS?
I use vue-cli , I
only managed to connect jquery, but I can’t connect *-ui
As I already did:
npm install jquery-ui
in webpack.prod.conf.js in plugins I registered
new webpack.DefinePlugin({
'process.env': env,
$: 'jquery',
jquery: 'jquery',
'window.jQuery': 'jquery',
jQuery: 'jquery'
}),
mounted(){
$('a').click(function (e) {
alert('working!')
})
}
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