J
J
jack3d2015-03-27 13:41:03
css
jack3d, 2015-03-27 13:41:03

How to install bower package in jade?

I use jade for layout. How do I install a package (like bower install jquery) into my jade file?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Malinochkin, 2015-05-15
@jack3d

For this kind of task, you will need any assembler for which there is a wiredep package.
Next, you set up watch to listen for bower.json changes, and if a change has been detected, you run a task with the wiredep package.
In the jade file itself, you will have to add two lines:

# если JS

// bower:js
// endbower

# если CSS

// bower:css
// endbower

7
7rulnik, 2015-03-27
@7rulnik

https://github.com/taptapship/wiredep

O
Oleg Vavilov, 2015-03-27
@olgenn

Я бы посоветовал собирать все js файлы в один и подключать один файл. Вот Неплохой материал по теме

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question