aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-04 13:08:38 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-04 13:08:38 +0200
commit7f82b8ae377214dd9b3f13a76a5e5f4e963e9425 (patch)
tree70b9876e599ee510ccf8133418b98daeeb44e4d9 /client/config/webpack.common.js
parentf0dc9602f9ef507370bf774d953b5b3bc7b75243 (diff)
downloadPeerTube-7f82b8ae377214dd9b3f13a76a5e5f4e963e9425.tar.gz
PeerTube-7f82b8ae377214dd9b3f13a76a5e5f4e963e9425.tar.zst
PeerTube-7f82b8ae377214dd9b3f13a76a5e5f4e963e9425.zip
Use webtorrent as external dependency instead of building it with
webpack
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 653866b93..7f1da74b9 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -222,10 +222,16 @@ module.exports = {
222 * 222 *
223 * See: https://www.npmjs.com/package/copy-webpack-plugin 223 * See: https://www.npmjs.com/package/copy-webpack-plugin
224 */ 224 */
225 new CopyWebpackPlugin([{ 225 new CopyWebpackPlugin([
226 from: 'src/assets', 226 {
227 to: 'assets' 227 from: 'src/assets',
228 }]), 228 to: 'assets'
229 },
230 {
231 from: 'node_modules/webtorrent/webtorrent.min.js',
232 to: 'assets/webtorrent'
233 }
234 ]),
229 235
230 /* 236 /*
231 * Plugin: HtmlWebpackPlugin 237 * Plugin: HtmlWebpackPlugin
@@ -243,8 +249,7 @@ module.exports = {
243 new webpack.ProvidePlugin({ 249 new webpack.ProvidePlugin({
244 jQuery: 'jquery', 250 jQuery: 'jquery',
245 $: 'jquery', 251 $: 'jquery',
246 jquery: 'jquery', 252 jquery: 'jquery'
247 WebTorrent: 'webtorrent/webtorrent.min'
248 }) 253 })
249 254
250 ], 255 ],