mirror of https://github.com/Chocobozzz/PeerTube
parent
ea5cdc11ff
commit
2564d97e0d
|
@ -8,6 +8,7 @@
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<meta property="og:platform" content="PeerTube" />
|
<meta property="og:platform" content="PeerTube" />
|
||||||
|
|
||||||
|
<!-- custom css tag -->
|
||||||
<link rel="icon" type="image/png" href="/client/assets/images/favicon.png" />
|
<link rel="icon" type="image/png" href="/client/assets/images/favicon.png" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,15 @@ module.exports = function () {
|
||||||
title: 'PeerTube',
|
title: 'PeerTube',
|
||||||
chunksSortMode: 'auto',
|
chunksSortMode: 'auto',
|
||||||
inject: 'body',
|
inject: 'body',
|
||||||
chunks: ['video-embed']
|
chunks: ['video-embed'],
|
||||||
|
minify: {
|
||||||
|
collapseWhitespace: true,
|
||||||
|
removeComments: false,
|
||||||
|
removeRedundantAttributes: true,
|
||||||
|
removeScriptTypeAttributes: true,
|
||||||
|
removeStyleLinkTypeAttributes: true,
|
||||||
|
useShortDoctype: true
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
|
|
@ -210,6 +210,7 @@ class ClientHtml {
|
||||||
|
|
||||||
let html = buffer.toString()
|
let html = buffer.toString()
|
||||||
html = await ClientHtml.addAsyncPluginCSS(html)
|
html = await ClientHtml.addAsyncPluginCSS(html)
|
||||||
|
html = ClientHtml.addCustomCSS(html)
|
||||||
|
|
||||||
ClientHtml.htmlCache[path] = html
|
ClientHtml.htmlCache[path] = html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue