You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
412 B
20 lines
412 B
const path = require("path")
|
|
|
|
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin")
|
|
|
|
const clientFiles = [
|
|
'common-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
|
|
|