about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-03-27 10:44:12 -0500
committerDavid Yip <yipdw@member.fsf.org>2018-03-27 10:44:12 -0500
commitd2cdc2b5a37f9c9d56242e3540ff62cccff4b1ae (patch)
tree7a18011a34ee3f2c87c826797bf0443c5765d99e /config
parent49c957bc3bf186b7e560d09d605f24693338c5db (diff)
parent3523aa440ba3f52bf28fe1e9707506d327c4431f (diff)
Merge remote-tracking branch 'origin/master' into gs-master
Diffstat (limited to 'config')
-rw-r--r--config/webpack/production.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js
index e2d7f11dc..e1c681232 100644
--- a/config/webpack/production.js
+++ b/config/webpack/production.js
@@ -90,7 +90,7 @@ module.exports = merge(sharedConfig, {
         '**/*.woff',
       ],
       ServiceWorker: {
-        entry: path.join(__dirname, '../../app/javascript/mastodon/service_worker/entry.js'),
+        entry: `imports-loader?process.env=>${encodeURIComponent(JSON.stringify(process.env))}!${encodeURI(path.join(__dirname, '../../app/javascript/mastodon/service_worker/entry.js'))}`,
         cacheName: 'mastodon',
         output: '../assets/sw.js',
         publicPath: '/sw.js',