summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-10-08 10:25:54 +0200
committerManolo Carrasco <manolo@apache.org>2015-10-08 10:41:17 +0200
commit1f3a3c90baeb7aab5097d4df9f9331c16d7520db (patch)
tree1444579207060892d753a256732885dfbf06999a /tasks
parentb9409919d242e0b520de404cc500937e771785ff (diff)
downloadvaadin-core-1f3a3c90baeb7aab5097d4df9f9331c16d7520db.tar.gz
vaadin-core-1f3a3c90baeb7aab5097d4df9f9331c16d7520db.zip
Removing polyfill since its handled by site
Diffstat (limited to 'tasks')
-rw-r--r--tasks/docsite.js4
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, ''))