Client: avoid loading javascript ressource over the network
authorChocobozzz <florian.bigard@gmail.com>
Mon, 17 Apr 2017 10:24:18 +0000 (12:24 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 26 Apr 2017 19:22:51 +0000 (21:22 +0200)
client/config/webpack.common.js
client/package.json

index 35ea8ed284f04d88eda53a31109601f5b9d63997..80d77b400d132a849140a3ac5448f5c1115f9a60 100644 (file)
@@ -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'
index 3e68007de579697aae5a1e9431c46b8f5d8cd72e..84cb8e13ab06127f208884a39408ba4291ba8932 100644 (file)
@@ -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",