Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

How can I load the remote file with Builder? #863

@jensenfan

Description

@jensenfan

Hi, I would like to bundle two remote files with systemjs, here is my attempt:

const path = require('path')
const Builder = require('systemjs-builder');
var builder = new Builder('http://xxx.com/', path.join(__dirname,'./config.js'));
builder
  .bundle(['xx.js','xx.js'], 'index.js')
  .then(function () {
    console.log('Build complete');
  })
  .catch(function (err) {
    console.log('Build error');
    console.log(err);
  });

, obviously it doesn't work. What went wrong? Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions