diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-27 21:05:11 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2020-09-27 21:05:11 +0200 |
| commit | eaca9f28abdf3e3ac9571498fb6c39ca2986ee77 (patch) | |
| tree | 8bba2ae394f6342827c5724cfd86443fe87da35e /extension | |
| parent | d4fb48eb3793a93a8726652692b68592333dd778 (diff) | |
Update build to use content script
Diffstat (limited to 'extension')
| -rw-r--r-- | extension/junction.js | 2 | ||||
| -rw-r--r-- | extension/manifest.json | 2 | ||||
| -rw-r--r-- | extension/webpack.config.js | 6 |
3 files changed, 5 insertions, 5 deletions
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; |