diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/docsite.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/docsite.js b/tasks/docsite.js index 7c99868..bce91c8 100644 --- a/tasks/docsite.js +++ b/tasks/docsite.js @@ -75,7 +75,9 @@ config.components.forEach(function (n) { var id = $2.trim().toLowerCase().replace(/[^\w]+/g,'_'); return '<h' + $1 + ' id="' + id + '">' + $2 + $3; })) - // embed files are displayed as iframe, we don't remove above fragments like body + // Remove webcomponents polyfill since it's added at top of the site + .pipe(replace(/^.*<script.*?\/webcomponents.*\.js[\"'].*?<\/script>\s*?\n?/img, '')) + // embed files are displayed as iframe, we don't remove above fragments like body or polyfill .pipe(addsrc(componentDemo + '/*-embed.html')) // Remove Analytics .pipe(replace(/^.*<script.*?ga\.js[\"'].*?<\/script>\s*?\n?/img, '')) |