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" }