Jeff G
Jeff G

Reputation: 2175

How to add aurelia-animator-css to a cli-created project

I created a new project using aurelia cli. I npm installed aurelia-animator-css and added aurelia.use.plugin('aurelia-animator-css'); to main.js. However aurelia-animator-css never loads. What else do I need to do? I assume I have to edit aurelia.json, but I'm not sure what to add.

Upvotes: 1

Views: 555

Answers (1)

Rabah
Rabah

Reputation: 2062

you can add this to one of your bundles' dependencies array:

{
    "name": "aurelia-animator-css",
    "path": "../node_modules/aurelia-animator-css/dist/amd",
    "main": "index"
}

Upvotes: 3

Related Questions