ActivityPub-federated video streaming platform using P2P directly in your web browser
Add webtorrent and jquery to webpack
Chocobozzzc21f59d334b7
diff --git a/client/.bootstraprc b/client/.bootstraprcindex a4d4fe689f..76a0bdb7b1 100644--- a/client/.bootstraprc+++ b/client/.bootstraprc@@ -90,13 +90,13 @@ styles:badges: falsejumbotron: falsethumbnails: true- alerts: false+ alerts: trueprogress-bars: truemedia: truelist-group: falsepanels: falsewells: false- responsive-embed: false+ responsive-embed: trueclose: false# Components w/ JavaScript@@ -112,7 +112,7 @@ styles:### Bootstrap scriptsscripts:transition: false- alert: false+ alert: truebutton: falsecarousel: falsecollapse: falsediff --git a/client/config/webpack.common.js b/client/config/webpack.common.jsindex abbf84fb09..a48518a351 100644--- a/client/config/webpack.common.js+++ b/client/config/webpack.common.js@@ -68,7 +68,9 @@ module.exports = {root: helpers.root('src'),// remove other default values- modulesDirectories: [ 'node_modules' ]+ modulesDirectories: [ 'node_modules', 'node_modules/blueimp-file-upload/js/vendor' ],++ packageAlias: 'browser'},@@ -243,7 +245,8 @@ module.exports = {new webpack.ProvidePlugin({jQuery: 'jquery',$: 'jquery',- jquery: 'jquery'+ jquery: 'jquery',+ WebTorrent: 'webtorrent/webtorrent.min'})],@@ -257,6 +260,8 @@ module.exports = {node: {global: 'window',crypto: 'empty',+ fs: 'empty',+ events: true,module: false,clearImmediate: false,setImmediate: falsediff --git a/client/config/webpack.prod.js b/client/config/webpack.prod.jsindex 23e2fabfe1..8827888a3b 100644--- a/client/config/webpack.prod.js+++ b/client/config/webpack.prod.js@@ -9,7 +9,6 @@ const commonConfig = require('./webpack.common.js') // the settings that are com/*** Webpack Plugins*/-const ProvidePlugin = require('webpack/lib/ProvidePlugin')const DefinePlugin = require('webpack/lib/DefinePlugin')const DedupePlugin = require('webpack/lib/optimize/DedupePlugin')const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin')diff --git a/client/src/vendor.ts b/client/src/vendor.tsindex 7a8c8423e0..dcc4439db0 100644--- a/client/src/vendor.ts+++ b/client/src/vendor.ts@@ -17,3 +17,7 @@ import 'rxjs/add/operator/mergeMap';import 'jquery';import 'bootstrap-loader';+import 'jquery.ui.widget/jquery.ui.widget';+import 'blueimp-file-upload';+// TODO: build webtorrent with webpack when https://github.com/webpack/webpack/pull/1931 will be merged+import 'webtorrent/webtorrent.min';