]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/webpack/webpack.video-embed.js
Add ability to schedule video publication
[github/Chocobozzz/PeerTube.git] / client / webpack / webpack.video-embed.js
index 4a8879031d50abefe6aef338b767dbb0eb1c9df8..403a65930b56a13daed5fe964eab5c65a8316fcd 100644 (file)
@@ -1,4 +1,5 @@
 const helpers = require('./helpers')
+const path = require('path')
 
 const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin
 const HtmlWebpackPlugin = require('html-webpack-plugin')
@@ -24,7 +25,11 @@ module.exports = function () {
        */
       extensions: [ '.ts', '.js', '.json', '.scss' ],
 
-      modules: [ helpers.root('src'), helpers.root('node_modules') ]
+      modules: [ helpers.root('src'), helpers.root('node_modules') ],
+
+      alias: {
+        'video.js$': path.resolve('node_modules/video.js/dist/alt/video.core.js')
+      }
     },
 
     output: {
@@ -35,6 +40,8 @@ module.exports = function () {
       publicPath: '/client/standalone/videos/'
     },
 
+    // devtool: 'source-map',
+
     module: {
 
       rules: [