Settings simplification to prepare translations. Diagnostic button is initialized by frontend.

This commit is contained in:
John Livingston
2021-06-11 14:30:46 +02:00
parent af5740a399
commit 80ef06c65f
4 changed files with 38 additions and 6 deletions

View File

@ -36,7 +36,8 @@ let config = clientFiles.map(f => ({
},
plugins: [
new webpack.DefinePlugin({
PLUGIN_CHAT_PACKAGE_NAME: JSON.stringify(packagejson.name)
PLUGIN_CHAT_PACKAGE_NAME: JSON.stringify(packagejson.name),
PLUGIN_CHAT_SHORT_NAME: JSON.stringify(packagejson.name.replace(/^peertube-plugin-/, ''))
}),
new EsmWebpackPlugin()
]