parent
d1d1293b3d
commit
0595929613
File diff suppressed because it is too large
Load Diff
@ -1,20 +1,23 @@ |
|||||||
const path = require("path") |
const path = require("path") |
||||||
|
|
||||||
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin") |
|
||||||
|
|
||||||
const clientFiles = [ |
const clientFiles = [ |
||||||
'common-client-plugin.js' |
'common-client-plugin.js' |
||||||
] |
] |
||||||
|
|
||||||
let config = clientFiles.map(f => ({ |
let config = clientFiles.map(f => ({ |
||||||
entry: "./client/" + f, |
entry: "./client/" + f, |
||||||
|
|
||||||
|
experiments: { |
||||||
|
outputModule: true |
||||||
|
}, |
||||||
|
|
||||||
output: { |
output: { |
||||||
path: path.resolve(__dirname, "./dist"), |
path: path.resolve(__dirname, "./dist"), |
||||||
filename: "./" + f, |
filename: "./" + f, |
||||||
library: "script", |
library: { |
||||||
libraryTarget: "var" |
type: "module" |
||||||
}, |
} |
||||||
plugins: [ new EsmWebpackPlugin() ] |
} |
||||||
})) |
})) |
||||||
|
|
||||||
module.exports = config |
module.exports = config |
||||||
|
Loading…
Reference in new issue