diff options
author | zeripath <art27@cantab.net> | 2020-05-23 14:58:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-23 14:58:58 +0100 |
commit | 723b1992711dc55548f0014552cc3b0a98bb86e8 (patch) | |
tree | 8b453346a934da6288ecc1d2c497aab6f64d0f00 /webpack.config.js | |
parent | 38c773d8a5d6168ebb3030513a6063381976bd22 (diff) | |
download | gitea-723b1992711dc55548f0014552cc3b0a98bb86e8.tar.gz gitea-723b1992711dc55548f0014552cc3b0a98bb86e8.zip |
Ensure serviceworker is created as /serviceworker.js (#11577)
#11538 moved the serviceworker to webbox but unfortunately
created the serviceworker in public/js rather than public/
This PR fixes this, fixing multiple issues with broken js
as a result of that change.
Signed-off-by: Andrew Thornton art27@cantab.net
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index b1038c407d..70a5029e63 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -47,7 +47,7 @@ module.exports = { filename: ({chunk}) => { // serviceworker can only manage assets below it's script's directory so // we have to put it in / instead of /js/ - return chunk.id === 'serviceworker' ? '[name].js' : 'js/[name].js'; + return chunk.name === 'serviceworker' ? '[name].js' : 'js/[name].js'; }, chunkFilename: 'js/[name].js', }, |