How to add a third-party JS plugin correctly

Did this the other day!

So make sure you have "flickity": "1.0.0" in your list of bower dependencies…

I was able to get Flickity working by adding this to my list of overrides in the bower.json file…

"overrides": {
  "modernizr": {
    "main": "./modernizr.js"
  },
  "bootstrap": {
    "main": [
      ...bootstrap js files here
    ]
  },
  "flickity": {
    "main": [
      "./dist/flickity.pkgd.js",
      "./dist/flickity.min.css"
    ]
  }
}
5 Likes