0👍
Check my repo, jQuery is integrated here: https://github.com/syed-haroon/vue-cli3-starter-template
And please make sure to install vue-cli3
may be in latest node 8
version and do npm install
and to run the project npm run serve
(now it’s changed and npm run dev
will not work).
And you can use it this way:
<template>
<div>
<H1 class="lorem">jQuery Works</H1>
</div>
</template>
<script>
import $ from 'jquery';
export default {
mounted() {
$('.lorem').addClass('ipsum');
}
};
</script>
Source:stackexchange.com