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.
17 lines
371 B
17 lines
371 B
5 years ago
|
const path = require("path")
|
||
|
|
||
|
const EsmWebpackPlugin = require("@purtuga/esm-webpack-plugin")
|
||
|
|
||
|
let config = {
|
||
|
entry: "./client/common-client-plugin.js",
|
||
|
output: {
|
||
|
path: path.resolve(__dirname, "./dist"),
|
||
|
filename: "./common-client-plugin.js",
|
||
|
library: "script",
|
||
|
libraryTarget: "var"
|
||
|
},
|
||
|
plugins: [new EsmWebpackPlugin()]
|
||
|
}
|
||
|
|
||
|
module.exports = config
|