angular-docs-cn/aio/tools/transforms/angular-base-package/processors/copyContentAssets.js

13 lines
260 B
JavaScript

module.exports = function copyContentAssetsProcessor(copyFolder) {
return {
$runBefore: ['postProcessHtml'],
assetMappings: [],
$process() {
this.assetMappings.forEach(map => {
copyFolder(map.from, map.to);
});
}
};
};