V
V
Vladimir Golub2018-06-29 01:47:15
Layout
Vladimir Golub, 2018-06-29 01:47:15

How to properly add libraries to tars?

How to properly add libraries to tars ?
If you add a simple download, then there are problems with the update.
If you use npm or bower, then with scss files, it’s still clear to import them into the .scss file of plugins or libraries, but how to include js ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2018-10-14
@RazerVG

You can use require if the build method for js is "workflow": "modular". But it doesn't work for all plugins...

require ('static/js/plugins/lightslider');
require ('static/js/plugins/slick');
require ('static/js/plugins/easydropdown');
require ('static/js/plugins/infinitescroll');
require ('static/js/plugins/mousewheel');
require ('static/js/plugins/scrollbar');

var Vue = require('vue/dist/vue.min.js');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question