diff --git a/index.html b/index.html index b2701b2..bb5b9aa 100644 --- a/index.html +++ b/index.html @@ -9,16 +9,45 @@ SRT to WebVTT Converter + + - +
+
+

Select a SRT format subtitle in order to convert it to WebVTT format

+ +
+
+
diff --git a/index.js b/index.js index 138d6ec..968e961 100644 --- a/index.js +++ b/index.js @@ -86,4 +86,5 @@ class WebVTTConverter { } window.WebVTTConverter = WebVTTConverter; + export default WebVTTConverter; diff --git a/package.json b/package.json index 85eec4b..6bb5a0f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "./node_modules/.bin/eslint ./index.js", "start": "webpack-dev-server", - "build": "babel ./index.js --stage 2 -d ./lib/index.js && webpack -p ./index.js ./umd/index.js", + "build": "babel ./index.js --stage 2 -d ./lib/ && webpack -p ./index.js ./umd/index.js", "minor": "npm version minor && npm publish", "major": "npm version major && npm publish", "patch": "npm version patch && npm publish" diff --git a/webpack.config.js b/webpack.config.js index 6efa0b2..15f374f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,9 +1,11 @@ -const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './index.js', - output: './build/bundle.js', + output: { + library: 'VideoToThumb', + libraryTarget: 'umd', + }, resolve: { extensions: ['.js'], },