const path = require("path") module.exports = { entry: { background: "./background/background.js", popup: "./popup/popup.js", options: "./options/options.js" }, output: { path: path.resolve(__dirname, "addon"), filename: "[name]/[name].js" }, mode: "none", watch: true, watchOptions: { ignored: '**/node_modules', }, module: { rules: [ { test: /\.s[ac]ss$/i, use: [ // Creates `style` nodes from JS strings "style-loader", // Translates CSS into CommonJS "css-loader", // Compiles Sass to CSS "sass-loader", ], }, ], } }