]> source.dussan.org Git - vaadin-core.git/commitdiff
Removing polyfill since its handled by site 12/head pr12/r5
authorManolo Carrasco <manolo@apache.org>
Thu, 8 Oct 2015 08:25:54 +0000 (10:25 +0200)
committerManolo Carrasco <manolo@apache.org>
Thu, 8 Oct 2015 08:41:17 +0000 (10:41 +0200)
tasks/docsite.js

index 7c99868f67f9ecf74c3b0576e91abbf5ba501dfc..bce91c88613064e12b7eed6735cf31de9fae5b50 100644 (file)
@@ -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, ''))