new webpack

This commit is contained in:
Matteo Manzinello 2020-04-24 12:13:24 +02:00
parent 076c052b23
commit 9bb3188687
2 changed files with 22 additions and 10 deletions

2
dist/mailgo.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,24 @@
const path = require("path"); const path = require("path");
module.exports = { module.exports = [
mode: "production", {
entry: "./dist/mailgo.min.js", mode: "production",
output: { entry: "./dist/mailgo.min.js",
filename: "mailgo.js", output: {
path: path.resolve(__dirname), filename: "mailgo.js",
library: "mailgo", path: path.resolve(__dirname),
libraryTarget: "umd", library: "mailgo",
libraryTarget: "umd",
},
}, },
}; {
mode: "production",
entry: "./dist/mailgo.min.js",
output: {
filename: "./dist/mailgo.min.js",
path: path.resolve(__dirname),
library: "mailgo",
libraryTarget: "umd",
},
},
];