]> cat aescling's git repositories - mastodon.git/commitdiff
fix #4356 : place sw.js to assets/sw.js (#4357)
authorSatoshi KOJIMA <skoji@mac.com>
Thu, 27 Jul 2017 23:55:52 +0000 (08:55 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Jul 2017 23:55:52 +0000 (01:55 +0200)
.gitignore
config/webpack/production.js
public/sw.js [new symlink]

index 868a843682f3a643be1124edc09aebd1076e160e..38ebc934f28eceec022667a1c5aa6fc0b126d858 100644 (file)
@@ -21,7 +21,6 @@ public/system
 public/assets
 public/packs
 public/packs-test
-public/sw.js
 .env
 .env.production
 node_modules/
index 4592db89e67b7eda83319c30cedc0eddaae7d415..64bdee47de588daa5de5f90d3ad275dba7d5910c 100644 (file)
@@ -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 (symlink)
index 0000000..1471a9e
--- /dev/null
@@ -0,0 +1 @@
+assets/sw.js
\ No newline at end of file