Multiple JSPM Packages, Provider, and Application

Linking to JSPM is easy, here is a simple task:

var exec = require('child_process').exec; gulp.task('jspmBuild', function (cb) { exec('jspm bundle-sfx src/app/app.js dist/app.min.js --skip-source-maps', function (err, stdout, stderr) { cb(err); }); }); 

What I would like to do, there are two separate packages: one for the provider files and one for the real application.

Is it possible?

+6
source share
1 answer

See https://github.com/jspm/jspm-cli/blob/master/docs/production-workflows.md

and try

 $ jspm bundle-sfx vendor1 + vendor2 dist/vendor.min.js --skip-source-maps $ jspm bundle-sfx src/app/app.js - vendor1 - vendor2 dist/app.min.js --skip-source-maps 

See also https://github.com/systemjs/systemjs/blob/master/docs/config-api.md#packages

If you want, you can configure more complex options with the packages parameter.

+3
source

All Articles