A
A
Anatoly Salamatin2017-05-25 00:20:13
JavaScript
Anatoly Salamatin, 2017-05-25 00:20:13

How to include plugin files?

Hello. Tell me please. Now I started using plug-in connection via npm and the following question arose.
I connect styles and js through import and assembly into one file.
But what to do with the auxiliary files of the plugin? For example now connected slick slider.
css and js connected easily and there are no problems with them in principle. But in the console now there are such errors
https://monosnap.com/file/fOZ2SWszLt5JHv19LiK3JcI6...
Actually, the question is how to correctly connect these files to the project. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Zhivagin, 2017-05-25
@Krasnodar_etc

The correct option is to use some kind of module builder a la gulp-browserify . You can find out about its configuration in Google
Wrong option - just throw these fonts into the folder with the build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question