This commit is contained in:
Amaury
2021-06-16 13:27:05 +02:00
commit bc7eed482f
12 changed files with 9317 additions and 0 deletions

20
webpack.config.js Normal file
View File

@ -0,0 +1,20 @@
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