Skip to content

Commit

Permalink
removed unused permissions in the manifest. Removed unused html pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Romstar committed Oct 30, 2023
1 parent 9d93cd5 commit 8d86ea0
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 78 deletions.
10 changes: 4 additions & 6 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
"manifest_version": 3,
"name": "Launching Buddy",
"description": "A chrome extension that automatically messages all of your ProductHunt followers on Twitter",
"options_page": "options.html",
"background": {
"service_worker": "background.bundle.js"
},
"permissions": [
"tabs",
"activeTab",
"storage"
],
"action": {
Expand All @@ -21,9 +19,10 @@
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*",
"<all_urls>"
"https://producthunt.com/*",
"https://www.producthunt.com/*",
"https://twitter.com/*",
"https://www.twitter.com/*"
],
"js": [
"contentScript.bundle.js"
Expand All @@ -33,7 +32,6 @@
]
}
],
"devtools_page": "devtools.html",
"web_accessible_resources": [
{
"resources": [
Expand Down
9 changes: 0 additions & 9 deletions src/pages/Devtools/index.html

This file was deleted.

5 changes: 0 additions & 5 deletions src/pages/Devtools/index.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/pages/Options/Options.css

This file was deleted.

12 changes: 0 additions & 12 deletions src/pages/Options/Options.tsx

This file was deleted.

Empty file removed src/pages/Options/index.css
Empty file.
14 changes: 0 additions & 14 deletions src/pages/Options/index.html

This file was deleted.

9 changes: 0 additions & 9 deletions src/pages/Options/index.tsx

This file was deleted.

16 changes: 1 addition & 15 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ const isDevelopment = process.env.NODE_ENV !== 'production';
const options = {
mode: process.env.NODE_ENV || 'development',
entry: {
options: path.join(__dirname, 'src', 'pages', 'Options', 'index.tsx'),
popup: path.join(__dirname, 'src', 'pages', 'Popup', 'index.tsx'),
background: path.join(__dirname, 'src', 'pages', 'Background', 'index.ts'),
contentScript: path.join(__dirname, 'src', 'pages', 'Content', 'index.ts'),
devtools: path.join(__dirname, 'src', 'pages', 'Devtools', 'index.ts'),
panel: path.join(__dirname, 'src', 'pages', 'Panel', 'index.tsx'),
},
chromeExtensionBoilerplate: {
notHotReload: ['background', 'contentScript', 'devtools'],
notHotReload: ['background', 'contentScript'],
},
output: {
filename: '[name].bundle.js',
Expand Down Expand Up @@ -183,24 +181,12 @@ const options = {
},
],
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'src', 'pages', 'Options', 'index.html'),
filename: 'options.html',
chunks: ['options'],
cache: false,
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'src', 'pages', 'Popup', 'index.html'),
filename: 'popup.html',
chunks: ['popup'],
cache: false,
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'src', 'pages', 'Devtools', 'index.html'),
filename: 'devtools.html',
chunks: ['devtools'],
cache: false,
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, 'src', 'pages', 'Panel', 'index.html'),
filename: 'panel.html',
Expand Down

0 comments on commit 8d86ea0

Please sign in to comment.