J
J
Junior Development2020-10-19 09:50:50
JavaScript
Junior Development, 2020-10-19 09:50:50

How to properly connect the Vue.js plugin ( Nuxt )?

You need to connect the plugin to the project.
Tell me how to do it right?

In particular, I'm interested in the following:
1. Where to place the following code.
`require('vue2-animate/dist/vue2-animate.min.css')`

2. Where should the plugin be placed? PATH_TO_SOURCE
`$animationDuration: 0.5s; // specify animation duration. Default value: 1s
Dmitrijs Balcers "/src/sass/vue2-animate.scss";`

I would be very grateful if you could show me with an example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2020-10-19
@yarkov

In the plugins folder you create a file, connect what you need in it, call Vue.use(/*...*/)it in the config, in the plugnis section, add the path to the file.
Start from the docks to the naxt , everything is described there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question