X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fwebpack%2Fwebpack.video-embed.js;h=403a65930b56a13daed5fe964eab5c65a8316fcd;hb=bbe0f0645ca958d33a3f409b15166609733b663f;hp=b51808dc2198ff3d2e4493b4f863eca674e550c0;hpb=7bfd1b1edb7ea4ea6516b6a74c4e9af938d0bdc6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/webpack/webpack.video-embed.js b/client/webpack/webpack.video-embed.js index b51808dc2..403a65930 100644 --- a/client/webpack/webpack.video-embed.js +++ b/client/webpack/webpack.video-embed.js @@ -1,4 +1,5 @@ const helpers = require('./helpers') +const path = require('path') const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin const HtmlWebpackPlugin = require('html-webpack-plugin') @@ -24,7 +25,11 @@ module.exports = function () { */ extensions: [ '.ts', '.js', '.json', '.scss' ], - modules: [ helpers.root('src'), helpers.root('node_modules') ] + modules: [ helpers.root('src'), helpers.root('node_modules') ], + + alias: { + 'video.js$': path.resolve('node_modules/video.js/dist/alt/video.core.js') + } }, output: { @@ -35,6 +40,8 @@ module.exports = function () { publicPath: '/client/standalone/videos/' }, + // devtool: 'source-map', + module: { rules: [ @@ -99,7 +106,7 @@ module.exports = function () { plugins: [ new ExtractTextPlugin({ - filename: '[name].[contenthash].css' + filename: '[name].[hash].css' }), new PurifyCSSPlugin({ @@ -135,6 +142,11 @@ module.exports = function () { }) ], + performance: { + maxEntrypointSize: 700000, // 600kB + maxAssetSize: 700000 + }, + node: { global: true, crypto: 'empty',