mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-10-14 16:10:10 +00:00
Feature/webpack integration (#9)
* working webpack into template * removing package-lock.json * implementing source
This commit is contained in:
parent
2b9595746b
commit
69b5363c88
11 changed files with 208 additions and 501 deletions
9
tools/clean.ts
Normal file
9
tools/clean.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import * as fs from "fs";
|
||||
|
||||
function removeExport(file: string) {
|
||||
let content = fs.readFileSync(file, "utf8");
|
||||
content = content.replace("export {};", "");
|
||||
fs.writeFileSync(file, content);
|
||||
}
|
||||
|
||||
removeExport("./dist/js/background.js");
|
Loading…
Add table
Add a link
Reference in a new issue