This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"content_scripts": [ | |
{ | |
"matches": ["*://*.github.com/*"], | |
"js": ["contentScript.js", "runtime.js"] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | |
# For additional information regarding the format and rule options, please see: | |
# https://github.com/browserslist/browserslist#queries | |
# You can see what browsers were selected by your queries by running: | |
# npx browserslist | |
Chrome >= 61 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "My Extension", | |
"version": "1.0.0", | |
"description": "Description here", | |
"manifest_version": 2, | |
"permissions": ["webNavigation", "tabs"], | |
"browser_action": { | |
"default_popup": "index.html" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
... | |
"projects": { | |
"chrome-extension-template": { | |
... | |
"architect": { | |
"build": { | |
"builder": "@angular-builders/custom-webpack:browser", | |
"options": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ExtensionReloader = require('webpack-extension-reloader') | |
const config = require('./custom-webpack.config'); | |
module.exports = {...config, | |
mode: 'development', | |
plugins: [new ExtensionReloader({ | |
reloadPage: true, | |
entries: { | |
background: 'background', | |
contentScript: 'contentScript' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "My Extension", | |
"version": "1.0.0", | |
"description": "Description here", | |
"manifest_version": 2, | |
"permissions": ["webNavigation", "tabs"], | |
"page_action": { | |
"default_popup": "index.html" | |
}, | |
"background": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Hola desde ContentScript.ts!!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": "./tsconfig.json", | |
"compilerOptions": { | |
"outDir": "./out-tsc/app", | |
"types": ["chrome"] | |
}, | |
"files": [ | |
"src/main.ts", | |
"src/polyfills.ts", | |
"src/background.ts", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
... | |
"projects": { | |
"chrome-extension-template": { | |
... | |
"architect": { | |
"build": { | |
"builder": "@angular-builders/custom-webpack:browser", | |
"options": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "My Extension", | |
"version": "1.0.0", | |
"description": "Description here", | |
"manifest_version": 2, | |
"permissions": ["webNavigation", "tabs"], | |
"page_action": { | |
"default_popup": "index.html" | |
}, | |
"background": { |