- new PurifyCSSPlugin({
- paths: [ helpers.root('src/standalone/videos/embed.ts') ],
- purifyOptions: {
- minify: true,
- whitelist: [ '*vjs*', '*video-js*' ]
+ new HtmlWebpackPlugin({
+ template: 'src/standalone/videos/embed.html',
+ filename: 'embed.html',
+ title: 'PeerTube',
+ chunksSortMode: 'auto',
+ inject: 'body',
+ chunks: ['video-embed'],
+ minify: {
+ collapseWhitespace: true,
+ removeComments: false,
+ removeRedundantAttributes: true,
+ removeScriptTypeAttributes: true,
+ removeStyleLinkTypeAttributes: true,
+ useShortDoctype: true