From: Chocobozzz Date: Mon, 17 Apr 2017 10:24:18 +0000 (+0200) Subject: Client: avoid loading javascript ressource over the network X-Git-Tag: v0.0.1-alpha~466 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=240c64c5f4277f0ce36c094f0663bd30d264ec40;p=oweals%2Fpeertube.git Client: avoid loading javascript ressource over the network --- 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",