]> git.r.bdr.sh - rbdr/junction/commitdiff
Update build to use content script
authorRuben Beltran del Rio <redacted>
Sun, 27 Sep 2020 19:05:11 +0000 (21:05 +0200)
committerRuben Beltran del Rio <redacted>
Sun, 27 Sep 2020 19:05:11 +0000 (21:05 +0200)
extension/junction.js
extension/manifest.json
extension/webpack.config.js

index a662f6c8f612150cca9843e57262e613e9ea7075..f3e1fb49c6b493baa66b5a9fe25a1993b1082662 100644 (file)
@@ -58,7 +58,7 @@ const internals = {
     const activeTabs = await internals.getActiveTabs();
 
       const execution = await internals.getRoot().tabs.executeScript(activeTabs[0].id, {
     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]) {
       });
 
       if (!execution || !execution[0]) {
index 3274b0058678d5692f3c7d59ce36491ec64b44cb..2a5723a98800ec1d37a7e9f8d2157aca6bc24a27 100644 (file)
@@ -13,7 +13,7 @@
   },
 
   "background": {
   },
 
   "background": {
-    "scripts": ["build/junction.js"]
+    "scripts": ["junction.js"]
   },
 
   "browser_action": {
   },
 
   "browser_action": {
index 9c6ad83ecb310df1710767d250214e8214ff87e8..524d4544465e972016067ef66cd9854f6dc52205 100644 (file)
@@ -4,10 +4,10 @@ const path = require('path');
 const config = {
 
     // Entry
 const config = {
 
     // Entry
-    entry:'./junction.js',  // Output
+    entry:'./content_script.js',  // Output
     output: {
         path: path.resolve(__dirname, 'build'),
     output: {
         path: path.resolve(__dirname, 'build'),
-        filename: 'junction.js',
+        filename: 'content_script.js',
     },  // Loaders
     module: {
         rules : [
     },  // Loaders
     module: {
         rules : [
@@ -22,4 +22,4 @@ const config = {
     node: { fs: 'empty' },// Plugins
     plugins: [],
 };// Exports
     node: { fs: 'empty' },// Plugins
     plugins: [],
 };// Exports
-module.exports = config;
\ No newline at end of file
+module.exports = config;