chrome webpack

This commit is contained in:
Matteo Manzinello
2020-07-25 18:52:51 +02:00
parent 711130475c
commit 8cf1539f0f
3 changed files with 30 additions and 0 deletions

View File

@@ -52,6 +52,25 @@ module.exports = [
path: path.resolve(__dirname, "dist"),
},
},
{
mode: "production",
target: "web",
devtool: "source-map",
entry: "./mailgo.chrome.ts",
context: path.join(__dirname, "webpack"),
module: {
rules: mailgoRules,
},
resolve: {
extensions: [".ts", ".js"],
},
output: {
filename: "mailgo.chrome.min.js",
library: "mailgo",
libraryTarget: "window",
path: path.resolve(__dirname, "dist"),
},
},
{
mode: "production",
target: "web",