From 240c64c5f4277f0ce36c094f0663bd30d264ec40 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Apr 2017 12:24:18 +0200 Subject: [PATCH] Client: avoid loading javascript ressource over the network --- client/config/webpack.common.js | 22 +--------------------- client/package.json | 2 +- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index 35ea8ed28..80d77b400 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js @@ -72,11 +72,7 @@ module.exports = function (options) { */ extensions: [ '.ts', '.js', '.json', '.scss' ], - modules: [ helpers.root('src'), helpers.root('node_modules') ], - - alias: { - 'video.js': 'video.js/dist/alt/video.novtt' - } + modules: [ helpers.root('src'), helpers.root('node_modules') ] }, /* @@ -223,22 +219,6 @@ module.exports = function (options) { from: 'node_modules/webtorrent/webtorrent.min.js', to: 'assets/webtorrent' }, - { - from: 'node_modules/video.js/dist/video.min.js', - to: 'assets/video-js' - }, - { - from: 'node_modules/video.js/dist/video-js.min.css', - to: 'assets/video-js' - }, - { - from: 'node_modules/videojs-dock/dist/videojs-dock.min.js', - to: 'assets/video-js' - }, - { - from: 'node_modules/videojs-dock/dist/videojs-dock.css', - to: 'assets/video-js' - }, { from: 'src/standalone', to: 'standalone' diff --git a/client/package.json b/client/package.json index 3e68007de..84cb8e13a 100644 --- a/client/package.json +++ b/client/package.json @@ -78,7 +78,7 @@ "tslint-loader": "^3.3.0", "typescript": "~2.2.0", "url-loader": "^0.5.7", - "video.js": "^5.11.9", + "video.js": "^5.19.2", "videojs-dock": "^2.0.2", "webpack": "^2.2.0", "webpack-md5-hash": "0.0.5", -- 2.25.1