From: Satoshi KOJIMA Date: Thu, 27 Jul 2017 23:55:52 +0000 (+0900) Subject: fix #4356 : place sw.js to assets/sw.js (#4357) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=e54cc15cbd0b21c32acfa223e57f24667b158f48;p=mastodon.git fix #4356 : place sw.js to assets/sw.js (#4357) --- 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