]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/config/webpack.common.js
Client: fix ng2 bootstrap version that breaks change with patch versions...
[github/Chocobozzz/PeerTube.git] / client / config / webpack.common.js
index a48518a351025465e53cbe237b99f3ec4d160ce3..dec468736cc2e531ee0f9b39a14c7af82e0f677e 100644 (file)
@@ -68,7 +68,7 @@ module.exports = {
     root: helpers.root('src'),
 
     // remove other default values
-    modulesDirectories: [ 'node_modules', 'node_modules/blueimp-file-upload/js/vendor' ],
+    modulesDirectories: [ 'node_modules' ],
 
     packageAlias: 'browser'
 
@@ -147,12 +147,6 @@ module.exports = {
         loader: 'json-loader'
       },
 
-      /*
-       * Raw loader support for *.css files
-       * Returns file content as string
-       *
-       * See: https://github.com/webpack/raw-loader
-       */
       {
         test: /\.scss$/,
         exclude: /node_modules/,
@@ -179,6 +173,10 @@ module.exports = {
 
   },
 
+  sassLoader: {
+    precision: 10
+  },
+
   /*
    * Add additional plugins to the compiler.
    *
@@ -224,10 +222,16 @@ module.exports = {
      *
      * See: https://www.npmjs.com/package/copy-webpack-plugin
      */
-    new CopyWebpackPlugin([{
-      from: 'src/assets',
-      to: 'assets'
-    }]),
+    new CopyWebpackPlugin([
+      {
+        from: 'src/assets',
+        to: 'assets'
+      },
+      {
+        from: 'node_modules/webtorrent/webtorrent.min.js',
+        to: 'assets/webtorrent'
+      }
+    ]),
 
     /*
      * Plugin: HtmlWebpackPlugin
@@ -240,13 +244,6 @@ module.exports = {
     new HtmlWebpackPlugin({
       template: 'src/index.html',
       chunksSortMode: 'dependency'
-    }),
-
-    new webpack.ProvidePlugin({
-      jQuery: 'jquery',
-      $: 'jquery',
-      jquery: 'jquery',
-      WebTorrent: 'webtorrent/webtorrent.min'
     })
 
   ],