aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2015-10-08 08:07:16 +0200
committerManolo Carrasco <manolo@apache.org>2015-10-08 08:07:16 +0200
commitb9409919d242e0b520de404cc500937e771785ff (patch)
tree96c2bf96b04c683315b78211a4f9824c2f83468c
parentad6104333543e64a594d7865a4eeeb7140382cca (diff)
downloadvaadin-core-b9409919d242e0b520de404cc500937e771785ff.tar.gz
vaadin-core-b9409919d242e0b520de404cc500937e771785ff.zip
Temporary fix until webcomponentsjs#180 is fixed
-rw-r--r--tasks/docsite.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/docsite.js b/tasks/docsite.js
index 4440211..7c99868 100644
--- a/tasks/docsite.js
+++ b/tasks/docsite.js
@@ -28,6 +28,16 @@ gulp.task('cdn:docsite:clean', function() {
gulp.task('cdn:docsite:bower_components', ['cdn:stage-bower_components'], function() {
gutil.log('Copying bower components from ' + stagingPath + ' to ' + docPath + '/bower_components');
return gulp.src([stagingPath + '/**'])
+ // Temporary patch until #180 is fixed:
+ // https://github.com/webcomponents/webcomponentsjs/issues/180
+ .pipe(modify({
+ fileModifier: function(file, contents) {
+ if (/webcomponents-lite.*js/.test(file.path)) {
+ contents = contents.replace(/(if ?\()(\w+\.log)(\))/mg, '$1$2 && $2.split$3')
+ }
+ return contents;
+ }
+ }))
.pipe(gulp.dest(docPath + '/bower_components'));
});