diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-07 16:50:33 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-07 16:50:33 +0200 |
commit | 6cca7360eb9027e1544f7513df7da4684061ef7e (patch) | |
tree | 16550f99324234a94cb7cdb098001051400079c9 /client/webpack/webpack.video-embed.js | |
parent | 09f35e2a6fa71d593c9b22f90109e91fc6be89a1 (diff) | |
download | PeerTube-6cca7360eb9027e1544f7513df7da4684061ef7e.tar.gz PeerTube-6cca7360eb9027e1544f7513df7da4684061ef7e.tar.zst PeerTube-6cca7360eb9027e1544f7513df7da4684061ef7e.zip |
Reduce bundle sizes
Diffstat (limited to 'client/webpack/webpack.video-embed.js')
-rw-r--r-- | client/webpack/webpack.video-embed.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index 5a4e35dea..403a65930 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js | |||
@@ -1,4 +1,5 @@ | |||
1 | const helpers = require('./helpers') | 1 | const helpers = require('./helpers') |
2 | const path = require('path') | ||
2 | 3 | ||
3 | const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin | 4 | const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin |
4 | const HtmlWebpackPlugin = require('html-webpack-plugin') | 5 | const HtmlWebpackPlugin = require('html-webpack-plugin') |
@@ -24,7 +25,11 @@ module.exports = function () { | |||
24 | */ | 25 | */ |
25 | extensions: [ '.ts', '.js', '.json', '.scss' ], | 26 | extensions: [ '.ts', '.js', '.json', '.scss' ], |
26 | 27 | ||
27 | modules: [ helpers.root('src'), helpers.root('node_modules') ] | 28 | modules: [ helpers.root('src'), helpers.root('node_modules') ], |
29 | |||
30 | alias: { | ||
31 | 'video.js$': path.resolve('node_modules/video.js/dist/alt/video.core.js') | ||
32 | } | ||
28 | }, | 33 | }, |
29 | 34 | ||
30 | output: { | 35 | output: { |