mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add custom variable check for webpack dev server
This commit is contained in:
parent
fda52baed5
commit
3b4ff70709
3 changed files with 13 additions and 5 deletions
|
@ -45,8 +45,8 @@ self.addEventListener('notificationclick', function (event) {
|
|||
}, false);
|
||||
|
||||
// Do not precache files in development so live reload works as expected
|
||||
/* eslint-disable-next-line no-undef -- NODE_ENV is replaced by webpack */
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
/* eslint-disable-next-line no-undef -- WEBPACK_SERVE is replaced by webpack */
|
||||
if (process.env.WEBPACK_SERVE) {
|
||||
// this is needed by the webpack Workbox plugin
|
||||
/* eslint-disable-next-line no-restricted-globals,no-undef */
|
||||
precacheAndRoute(self.__WB_MANIFEST);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue