From da5a4da97bac7f19eece777f44ecf917b84cfee2 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Fri, 19 Jun 2020 21:01:10 +0100 Subject: [PATCH] improve mue building --- manifest/chrome.json | 1 - manifest/firefox.json | 3 +-- package.json | 5 ++++- 3 files changed, 5 insertions(+), 4 deletions(-) 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"