Skip to content

Commit

Permalink
Adds Localhost to Host Permissions for Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Step7750 committed Apr 11, 2024
1 parent d404b88 commit d2ad58b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,14 @@ module.exports = (env) => {
transform(raw) {
let processed = JSON.parse(raw.toString());

console.log();
if (mode === 'development' && env.browser === 'chrome') {
processed.key = CHROME_KEY;
}

if (mode === 'development') {
processed.host_permissions.push('http://localhost:8080/*');
}

if (env.browser === 'firefox') {
processed = convertToFirefoxManifest(processed);
}
Expand Down

0 comments on commit d2ad58b

Please sign in to comment.