W
W
wakenby2020-11-27 00:44:53
npm
wakenby, 2020-11-27 00:44:53

How to include dependencies or devDependencies?

For example, I have reset-css, it is written in (sass | less | css) and I import it as a sass file, where should I include it? In dependenciesor devDependencies? I don't really understand the difference in this case

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vladimir Lewandowski, 2020-11-27
@wakenby

In dependenciesyou connect everything that will be used in production. Your end user will see the work in his browser reset-css- that means in dependencies.
In devDependencieseverything that is not directly used in production. For example, typescript or node-sass, which are only needed at the build stage.

O
Oleg, 2016-10-22
@ruslite

something like this ;) https://jsfiddle.net/1j6xrLbo/

R
Rafael™, 2016-10-21
@maxminimus

css animation
css transition

A
Alexey Sklyarov, 2016-10-21
@0example

Read about addeventlistener in javascript, it's the easiest way to make the animation you need. No one will show you a ready-made solution, because you need to clearly understand what needs to be done.
I can briefly say about this eventlistener : with it, you can catch the beginning / end of the animation (in your case, this is the movement from and to), after which you simply add / remove the css class of your animation.

2
2cha.headz, 2016-10-21
@glagolew059

Take a look, choose and use what suits you best =)
webformyself.com/top-9-bibliotek-dlya-animacii-v-2...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question