diff --git a/manifest/chrome.json b/manifest/chrome.json index b82e51ca..84d72c28 100644 --- a/manifest/chrome.json +++ b/manifest/chrome.json @@ -10,7 +10,6 @@ "chrome_url_overrides": { "newtab": "index.html" }, - "content_security_policy": "script-src 'self' 'unsafe-eval' 'sha256-Q/fJeEyXf7ZhxjXeAydpu6mDGAmyqvj93tDPNxGThn0='; object-src 'self'", "icons": { "16": "./icons/16x16-circle.png", "48": "./icons/48x48-circle.png", diff --git a/manifest/firefox.json b/manifest/firefox.json index 0b2efbd3..39cc3fa3 100644 --- a/manifest/firefox.json +++ b/manifest/firefox.json @@ -11,6 +11,5 @@ }, "chrome_settings_overrides": { "homepage": "index.html" - }, - "content_security_policy": "script-src 'self' 'unsafe-eval' 'sha256-Q/fJeEyXf7ZhxjXeAydpu6mDGAmyqvj93tDPNxGThn0='; object-src 'self'" + } } diff --git a/package.json b/package.json index 439dfaa2..9a6c7a42 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,10 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build" + "build": "env INLINE_RUNTIME_CHUNK=false && react-scripts build", + "chrome": "cp manifest/chrome.json build/manifest.json", + "firefox": "cp manifest/firefox.json build/manifest.json", + "opera": "cp manifest/opera.json build/manifest.json && cp manifest/background-opera.js build/" }, "eslintConfig": { "extends": "react-app"