24 lines
349 B
JavaScript
24 lines
349 B
JavaScript
|
const path = require("path")
|
||
|
|
||
|
const clientFiles = [
|
||
|
'common-client-plugin.js'
|
||
|
]
|
||
|
|
||
|
let config = clientFiles.map(f => ({
|
||
|
entry: "./client/" + f,
|
||
|
|
||
|
experiments: {
|
||
|
outputModule: true
|
||
|
},
|
||
|
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, "./dist"),
|
||
|
filename: "./" + f,
|
||
|
library: {
|
||
|
type: "module"
|
||
|
}
|
||
|
}
|
||
|
}))
|
||
|
|
||
|
module.exports = config
|