]> source.dussan.org Git - vaadin-core.git/commitdiff
Added more specific regex for demo.css import pr12/r4
authorTomi Virkki <virkki@vaadin.com>
Tue, 6 Oct 2015 08:43:50 +0000 (11:43 +0300)
committerTomi Virkki <virkki@vaadin.com>
Tue, 6 Oct 2015 08:43:50 +0000 (11:43 +0300)
tasks/docsite.js

index f80f3125baf027ef9a753d2b2052ccb15dbb92e7..4f8be17fc552c001bc4f9b793a88621c8de109cc 100644 (file)
@@ -74,7 +74,7 @@ config.components.forEach(function (n) {
       // Adjust location of dependencies in bower_components (../..)
       .pipe(replace(/(src|href)=("|')(.*?)\.\.\/\.\.\//mg, '$1=$2../bower_components/'))
       // Remove references to demo.css file
-      .pipe(replace(/^.*demo.css.*\n/im, ''))
+      .pipe(replace(/^.*<link.*demo.css.*\n/im, ''))
       // Remove table of contents
       .pipe(replace(/^.*table-of-contents.html.*\n/im, ''))