21 lines
416 B
JavaScript
21 lines
416 B
JavaScript
const path = require("path")
|
|
|
|
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin")
|
|
|
|
const clientFiles = [
|
|
'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
|