Fix building JS code as exported library.

This commit is contained in:
Stefan Thomas
2012-11-07 15:21:40 -08:00
parent b271192547
commit af7ee234a4

View File

@@ -16,15 +16,11 @@ var builds = [{
minimize: true
}];
async.series(builds.map(build), function (err) {
if (err) {
console.error(err);
}
});
var defaultOpts = {
library: 'ripple',
// [sic] Yes, this is the spelling upstream.
libary: 'ripple',
// However, it's fixed in webpack 0.8, so we include the correct spelling too:
library: 'ripple'
};
function build(opts) {
var opts = extend({}, defaultOpts, opts);
@@ -37,3 +33,9 @@ function build(opts) {
});
}
}
async.series(builds.map(build), function (err) {
if (err) {
console.error(err);
}
});