BrowserExtensionTemplate/tools/clean.ts
Jonas Pfalzgraf 69b5363c88
Feature/webpack integration (#9)
* working webpack into template

* removing package-lock.json

* implementing source
2023-01-23 14:44:47 +01:00

9 lines
235 B
TypeScript

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");