Z. Clément
Z. Clément

Reputation: 474

MeteorJS file in template

I'm working on Meteor app, and we just received a HTML/CSS design, with a custom min.js for a slider, and I would add it in my templates and I don't know how to do it ..

Upvotes: 0

Views: 25

Answers (1)

Abhijith Sasikumar
Abhijith Sasikumar

Reputation: 14990

You have to add all the required html, javascript and css files in the package.js file api.addFiles section.

api.addFiles(['css/file1.css', 'js/file2.js','file3.html'], 'client');

Upvotes: 1

Related Questions