BrowserExtensionTemplate/tools/clean.ts
Jonas Pfalzgraf 2319a1fd9b
Version 1.4.0 (#10)
* Feature/webpack integration (#9)

* working webpack into template

* removing package-lock.json

* implementing source

* style update
2023-01-24 01:07:55 +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");