peertube-plugin-livechat/webpack.config.js
John Livingston b071489e5b Fix:
* Chat should be displayed for waiting and ended lives
* Chat and chat buttons must be cleaned out of the dom on navigation
2021-02-20 15:41:00 +01:00

22 lines
445 B
JavaScript

const path = require("path")
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin")
const clientFiles = [
'common-client-plugin.js',
'videowatch-client-plugin.js'
]
let config = clientFiles.map(f => ({
entry: "./client/" + f,
output: {
path: path.resolve(__dirname, "./dist"),
filename: "./" + f,
library: "script",
libraryTarget: "var"
},
plugins: [ new EsmWebpackPlugin() ]
}))
module.exports = config