Skip to content
This repository was archived by the owner on Aug 2, 2018. It is now read-only.

Require local bower component? #467

@topherfangio

Description

@topherfangio

Since Duo does not currently support private Bower/GitHub URLs, I was hoping I could still use Bower to download my dependencies, but then use Duo to bundle everything. I like how Duo scans my CSS/JS files for bower assets like images and copies them to the proper location after bundling, which I can't find anything similar in the Gulp world.

So, I'm trying to do the following in my app.js file:

require('./bower_components/my-special-component');

// My code goes down here

Unfortunately, I get the following error:

Error: bower_components/my-special-component@*: cannot resolve

Is there another/better way to do this? I was hoping it would find the bower.json file that has a main with all of my dependencies, but it looks like it's not.

Thanks! Looking forward to when Duo takes over the world ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions