From: Ruben Beltran del Rio Date: Sun, 27 Sep 2020 19:05:11 +0000 (+0200) Subject: Update build to use content script X-Git-Url: https://git.r.bdr.sh/rbdr/junction/commitdiff_plain/eaca9f28abdf3e3ac9571498fb6c39ca2986ee77?ds=sidebyside;hp=--cc Update build to use content script --- eaca9f28abdf3e3ac9571498fb6c39ca2986ee77 diff --git a/extension/junction.js b/extension/junction.js index a662f6c..f3e1fb4 100644 --- a/extension/junction.js +++ b/extension/junction.js @@ -58,7 +58,7 @@ const internals = { const activeTabs = await internals.getActiveTabs(); const execution = await internals.getRoot().tabs.executeScript(activeTabs[0].id, { - file: '/content_script.js' + file: '/build/content_script.js' }); if (!execution || !execution[0]) { diff --git a/extension/manifest.json b/extension/manifest.json index 3274b00..2a5723a 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -13,7 +13,7 @@ }, "background": { - "scripts": ["build/junction.js"] + "scripts": ["junction.js"] }, "browser_action": { diff --git a/extension/webpack.config.js b/extension/webpack.config.js index 9c6ad83..524d454 100644 --- a/extension/webpack.config.js +++ b/extension/webpack.config.js @@ -4,10 +4,10 @@ const path = require('path'); const config = { // Entry - entry:'./junction.js', // Output + entry:'./content_script.js', // Output output: { path: path.resolve(__dirname, 'build'), - filename: 'junction.js', + filename: 'content_script.js', }, // Loaders module: { rules : [ @@ -22,4 +22,4 @@ const config = { node: { fs: 'empty' },// Plugins plugins: [], };// Exports -module.exports = config; \ No newline at end of file +module.exports = config;