ddliu / gulp-remote-src

Remote gulp.src
MIT License
20 stars 6 forks source link

Multiple remote sources? Absolute path not working, too #14

Open dylanh724 opened 6 years ago

dylanh724 commented 6 years ago

The example works fine. However, it says I can change base to null, then use direct paths in the array.

However, doing so results in an uncaught err:

events.js:163
      throw er; // Unhandled 'error' event
      ^
Error: Line 2562: Unexpected string
    at constructError (/var/www/throneoflies.com/node_modules/esprima/esprima.js:2407:21)

How can I use absolute paths? I tried this:

    remoteSrc(['https://checkout.stripe.com/checkout.js'], {
        base: null // absolute paths
    })

Or if I use the old way, how can I do multiple? sources? Say, 1 stripe, 1 google api from different 'bases'?

MatthiasKunnen commented 6 years ago

The code example you mentioned should work, is there any more information in the stack trace?