JSPM多个捆绑包,供应商和应用程序

时间:2015-08-22 01:29:07

标签: gulp jspm systemjs

捆绑JSPM很简单,这是一个简单的任务:

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);
        });
    });

我想做的是,有两个独立的捆绑包,一个用于供应商文件,另一个用于实际的应用程序。

这可能吗?

1 个答案:

答案 0 :(得分:3)

请参阅https://github.com/jspm/jspm-cli/blob/master/docs/production-workflows.md

并尝试

Sub chg_bkgrnd_Color()

Dim rng As Range
Dim row As Range
Dim cell As Range
Dim counter As Long

Set rng = Range("k2:k23")
Range("k2").Select

For Each cell In rng

  Select Case cell.Value

    Case Is = "Closed"

      ActiveCell.Offset(counter, -10).Interior.ThemeColor = xlThemeColorDark1 
      ActiveCell.Offset(counter, -10).Interior.TintAndShade = -0.249977111117893
      ActiveCell.Offset(counter, -9).Interior.ThemeColor = xlThemeColorDark1
      ActiveCell.Offset(counter, -9).Interior.TintAndShade = -0.249977111117893
      ActiveCell.Offset(counter, -8).Interior.ThemeColor = xlThemeColorDark1
      ActiveCell.Offset(counter, -8).Interior.TintAndShade = -0.249977111117893
      ActiveCell.Offset(counter, -7).Interior.ThemeColor = xlThemeColorDark1
      ActiveCell.Offset(counter, -7).Interior.TintAndShade = -0.249977111117893


    End Select

    counter = counter + 1
  Next

End Sub

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

如果需要,您可以使用$ 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 选项配置更复杂的设置。