From 326876343f427d3f933f88a488a43988ddf3ce0e Mon Sep 17 00:00:00 2001 From: Elizabeth Cray Date: Mon, 10 Nov 2025 16:28:20 -0500 Subject: [PATCH] Ignore generated files --- .gitignore | 3 +++ package.json | 2 +- webpack.config.js | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4d29575..ab67e9b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +addon/background/ +addon/popup/popup.js diff --git a/package.json b/package.json index 75f6570..0a5f64b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "license": "MPL-2.0", "author": "Elizabeth Cray", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "build": "webpack" }, "dependencies": { "webpack": "^5.102.1", diff --git a/webpack.config.js b/webpack.config.js index fa2fa19..e39722e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,12 +2,12 @@ const path = require("path") module.exports = { entry: { - background_scripts: "./background/background.js", - popup: "popup/popup.js" + background: "./background/background.js", + popup: "./popup/popup.js" }, output: { path: path.resolve(__dirname, "addon"), - filename: "[name]/index.js" + filename: "[name]/[name].js" }, mode: "none" }