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

10
webpack/mailgo.chrome.ts Normal file
View File

@@ -0,0 +1,10 @@
// webpack > dist/mailgo.chrome.js
// script to add in Chrome extension
// https://github.com/manzinello/mailgo-chrome-extension
import mailgo from "../src/mailgo";
// check if mailgo HTML is already present in the page
let mailgoExists = !!document.getElementById("mailgo");
if (!mailgoExists) mailgo();

View File

@@ -1,5 +1,6 @@
// webpack > dist/mailgo.firefox.js
// script to add in Firefox addon
// https://github.com/manzinello/mailgo-firefox-addon
import mailgo from "../src/mailgo";