diff options
author | Sam Potts <sam@potts.es> | 2018-05-14 23:38:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 23:38:48 +1000 |
commit | 797b70998faf1789831cd28a4fbd4933e5ad187f (patch) | |
tree | 444fc6487fe9cc6d1018df6942ca8f8b4e81ceb8 /gulpfile.js | |
parent | 4a01027da0c1873f27f20a4d9ce50713d4b3c214 (diff) | |
parent | 054f522aa929061e3a5ff0e15c5e6280e64d846d (diff) | |
download | plyr-797b70998faf1789831cd28a4fbd4933e5ad187f.tar.lz plyr-797b70998faf1789831cd28a4fbd4933e5ad187f.tar.xz plyr-797b70998faf1789831cd28a4fbd4933e5ad187f.zip |
Merge pull request #960 from friday/935
Support importing Plyr in Node.js without errors
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js index eec51aba..262fa2d2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,6 +13,7 @@ const filter = require('gulp-filter'); const sass = require('gulp-sass'); const cleancss = require('gulp-clean-css'); const run = require('run-sequence'); +const header = require('gulp-header'); const prefix = require('gulp-autoprefixer'); const gitbranch = require('git-branch'); const svgstore = require('gulp-svgstore'); @@ -146,6 +147,7 @@ const build = { options, ), ) + .pipe(header('typeof navigator === "object" && ')) // "Support" SSR (#935) .pipe(sourcemaps.write('')) .pipe(gulp.dest(output)) .pipe(filter('**/*.js')) |