diff options
author | Satoshi KOJIMA <skoji@mac.com> | 2017-07-28 08:55:52 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-28 01:55:52 +0200 |
commit | e54cc15cbd0b21c32acfa223e57f24667b158f48 (patch) | |
tree | db72a9adfce6dc0d284104d627195d9712e5540d | |
parent | 2654f3be82c518693c41b73fe68d693a345dbe67 (diff) |
fix #4356 : place sw.js to assets/sw.js (#4357)
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | config/webpack/production.js | 2 | ||||
l--------- | public/sw.js | 1 |
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 |