I'm trying to import an npm package into my vue-cli dev site. Here are the instructions provided by the package website:
It says that it needs the css and js files to be included somewhere in the code. How would I go about doing this?
I'm guessing the css file is included by putting this in App.vue:
<style>
@import '../node_modules/swiper/dist/css/swiper.min.css';
....
</style>
Is that right? How would I include the .js file? Inside App.vue, or main.js? I'm honestly not sure how the syntax for that would go either.
Here is my index.html file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="build/swiper.min.css">
</head>
<body>
<div id="app"></div>
<script src="build/swiper.min.js"></script>
</body>
</html>
