Conditional merge bower scripts

Hey,

I’d like to use the flexslider Bower package for specified post types only. Now I use this override in bower.json:

"flexslider": {
      "main": [
        "./images/*",
        "jquery.flexslider.js",
        "flexslider.less",
        "./fonts/*"
      ]
    }

Now It’s automatically merged in dist/main.js. It’s a bad pratcice to include a script on every page.
How can I use it only where it’s necessary?

Use manifest.json to create additional JS files and then conditionally enqueue them however you want in lib/setup.php.

Thank you!

I’ve added the above to themanifest.json dependencies and the script part working fine now

    "flexslider.js": {
      "bower": ["flexslider"]
    }

How can I use the flexslider.less file the same? Unfortunately simply adding to dependencies not satisfying.