You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
302 B
JavaScript
12 lines
302 B
JavaScript
7 years ago
|
const rollup = require('rollup').rollup;
|
||
|
const configs = require('../config').configs;
|
||
|
|
||
|
module.exports = function scripts() {
|
||
|
const bundles = configs.map(config => rollup(config).then((bundle) => {
|
||
|
config.cache = bundle;
|
||
|
return bundle.write(config);
|
||
|
}));
|
||
|
|
||
|
return Promise.all(bundles);
|
||
|
};
|