diff --git a/app/background/index.html b/app/background/index.html
index 888ceb9b..2e72d4ce 100644
--- a/app/background/index.html
+++ b/app/background/index.html
@@ -5,7 +5,7 @@
(function() {
const script = document.createElement('script');
script.async = true;
- script.src = (process.env.HOT)
+ script.src = (process.env.NODE_ENV)
? 'http://localhost:3000/dist/background.bundle.js'
: '../dist/background.bundle.js';
document.write(script.outerHTML);
diff --git a/app/lib/loadThemes.js b/app/lib/loadThemes.js
index 7bd13e5e..7e24d88d 100644
--- a/app/lib/loadThemes.js
+++ b/app/lib/loadThemes.js
@@ -5,7 +5,7 @@
* Label is text that is shown in preferences theme selector
*/
export default () => {
- const prefix = process.env.HOT ? 'http://localhost:3000/' : '../'
+ const prefix = process.env.NODE_ENV === 'development' ? 'http://localhost:3000/' : '../'
return [
{
value: `${prefix}dist/main/css/themes/light.css`,
diff --git a/app/main/index.html b/app/main/index.html
index a8b35220..40a02a66 100644
--- a/app/main/index.html
+++ b/app/main/index.html
@@ -6,7 +6,8 @@