From e54cc15cbd0b21c32acfa223e57f24667b158f48 Mon Sep 17 00:00:00 2001 From: Satoshi KOJIMA Date: Fri, 28 Jul 2017 08:55:52 +0900 Subject: [PATCH] fix #4356 : place sw.js to assets/sw.js (#4357) --- .gitignore | 1 - config/webpack/production.js | 2 +- public/sw.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) create mode 120000 public/sw.js diff --git a/.gitignore b/.gitignore index 868a8436..38ebc934 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 4592db89..64bdee47 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 00000000..1471a9e6 --- /dev/null +++ b/public/sw.js @@ -0,0 +1 @@ +assets/sw.js \ No newline at end of file