Explore
Sign In
skills/angular__angular
1
0
Fork 0
You've already forked angular__angular
mirror of https://github.com/angular/angular.git synced 2026-09-14 13:54:52 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
a926fd020bff85c3fb2e20899b4e70134fc7bb2f
angular__angular/aio/tools/transforms/angular-base-package/processors/copyContentAssets.js
T

13 lines
260 B
JavaScript
Raw Normal View History

build(aio): copy content image assets
2017-04-01 07:01:44 +01:00
module.exports = function copyContentAssetsProcessor(copyFolder) {
return {
build(aio): auto-fill width/height to all image tags Parse all `<img>` tags, during doc-gen, and insert the width and height of the sourceed image, if neither are already specified. Warnings are reported if the `<img>` tag has no `src` attribute or the image cannot be loaded. The work is done in the `addImageDimensions` post-processor, which must be configured with a `basePath` so that it knows where to find the images. Closes #15888
2017-04-28 15:05:05 +01:00
$runBefore: ['postProcessHtml'],
build(aio): copy content image assets
2017-04-01 07:01:44 +01:00
assetMappings: [],
$process() {
this.assetMappings.forEach(map => {
copyFolder(map.from, map.to);
});
}
};
};
Reference in New Issue Copy Permalink
Version: v1.25.5 Page: 2001ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어