diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eaff3d..915865d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.5.9 + +### Bug Fixes + +- Fix subtitle change, default subtitle + # 1.5.8 ### Bug Fixes @@ -7,7 +13,6 @@ ### Update - New plugin `ElectronFullscreenToggle` -- # 1.5.7 diff --git a/package.json b/package.json index cebee9c..f774008 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "videojs-plus", - "version": "1.5.8", + "version": "1.5.9", "description": "An extension and skin for video.js", "main": "dist/videojs-plus.umd.js", "module": "dist/videojs-plus.es5.js", diff --git a/rollup.config.js b/rollup.config.js index 976bcf0..60cfaf1 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -8,6 +8,7 @@ import scss from 'rollup-plugin-scss'; import json from 'rollup-plugin-json'; import copy from 'rollup-plugin-copy'; import kebabCase from 'lodash/kebabCase'; +import pkg from './package.json'; function createEntry(input, output, css, plugins = []) { return { @@ -36,7 +37,8 @@ function createEntry(input, output, css, plugins = []) { scss({ output: styles => { if (styles && styles.length) { - const cssOutput = css || output[0].file.replace(/\.(umd|es|iife).js/, '.css'); + const cssOutput = + css || output[0].file.replace(/\.(umd|es|iife).js/, '.css'); mkdirp(cssOutput.replace(/[^\/]*$/, '')); fs.writeFileSync(cssOutput, styles); } @@ -57,14 +59,23 @@ const output = setFileName => globals: { 'video.js': 'videojs' }, - banner: `/* eslint-disable */` + banner: ` + /* eslint-disable */ + /* VERSION: 1.5.9 */ + ` + .trim() + .replace(/^(\s{2})+/gm, '') + .replace(/^ *\n/, '') }; }); const distDir = 'dist'; export default [ - createEntry('source/index.js', output(format => path.join(distDir, `/videojs-plus.${format}.js`))), + createEntry( + 'source/index.js', + output(format => path.join(distDir, `/videojs-plus.${format}.js`)) + ), ...fs.readdirSync(pluginsDir).map(pluginName => { const kebabCaseName = kebabCase(pluginName); const srcDir = `${pluginsDir}/${pluginName}/`;