X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fwebpack%2Fwebpack.video-embed.js;h=3f280519200d424f93d82fed34bc2acd03d03d6d;hb=47a443e314ec806fbf80a12abd1247ff5b1d779f;hp=c5df40a046437eaa79c83e23bf2f394033a685c5;hpb=6527eb0ccf823b5eac547c90066d3bd693094b2c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index c5df40a04..3f2805192 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -24,6 +24,8 @@ module.exports = function () { modules: [ helpers.root('src'), 'node_modules' ], + symlinks: true, + alias: { 'video.js$': path.resolve('node_modules/video.js/core.js'), 'hls.js$': path.resolve('node_modules/hls.js/dist/hls.light.js'), @@ -69,13 +71,13 @@ module.exports = function () { { loader: 'ts-loader', options: { - configFile: helpers.root('tsconfig.json') + configFile: helpers.root('src/standalone/videos/tsconfig.json') } } ] }, { - test: /\.js$/, + test: /\.m?js$/, use: [ { loader: 'babel-loader', @@ -188,6 +190,7 @@ module.exports = function () { ecma: 6, warnings: false, ie8: false, + safari10: true, mangle: true, compress: { passes: 3,