Type webtorrent
[oweals/peertube.git] / client / config / webpack.common.js
index 4599858803d9e69930eb8148ad874d8396d52f21..da900da855a2202dc672e2d005e0ed0db798dca7 100644 (file)
@@ -135,7 +135,13 @@ module.exports = function (options) {
           test: /\.(sass|scss)$/,
           use: [
             'css-to-string-loader',
-            'css-loader?sourceMap',
+            {
+              loader: 'css-loader',
+              options: {
+                sourceMap: true,
+                importLoaders: 1
+              }
+            },
             'resolve-url-loader',
             {
               loader: 'sass-loader',
@@ -174,7 +180,7 @@ module.exports = function (options) {
          */
         {
           test: /\.(jpg|png|gif)$/,
-          use: 'file-loader'
+          use: 'url-loader'
         }
 
       ]
@@ -254,6 +260,7 @@ module.exports = function (options) {
        *
        * See: https://www.npmjs.com/package/copy-webpack-plugin
        */
+
       // Used by embed.html
       new CopyWebpackPlugin([
         {
@@ -264,6 +271,22 @@ 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'