G
G
Gretiy2021-12-11 18:49:42
Vue.js
Gretiy, 2021-12-11 18:49:42

How to add css file to vue project?

Hello, I use https://animate.style/ as a css file and include it in index.html

<link rel="stylesheet" href="require('../src/assets/animate.css')">

But the compiler swears
Can I add animate.css without css modules and without putting it in the public folder

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2021-12-11
@Gretiy

npm i amnimate.css (как точно называется пакет я не помню)

// index.js
import 'animate.css';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question