about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--config/webpack/production.js2
l---------public/sw.js1
3 files changed, 2 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 868a84368..38ebc934f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,7 +21,6 @@ public/system
 public/assets
 public/packs
 public/packs-test
-public/sw.js
 .env
 .env.production
 node_modules/
diff --git a/config/webpack/production.js b/config/webpack/production.js
index 4592db89e..64bdee47d 100644
--- a/config/webpack/production.js
+++ b/config/webpack/production.js
@@ -48,7 +48,7 @@ module.exports = merge(sharedConfig, {
       ServiceWorker: {
         entry: path.join(__dirname, '../../app/javascript/mastodon/service_worker/entry.js'),
         cacheName: 'mastodon',
-        output: '../sw.js',
+        output: '../assets/sw.js',
         publicPath: '/sw.js',
         minify: true,
       },
diff --git a/public/sw.js b/public/sw.js
new file mode 120000
index 000000000..1471a9e64
--- /dev/null
+++ b/public/sw.js
@@ -0,0 +1 @@
+assets/sw.js
\ No newline at end of file