move pwa to web static, change desc

This commit is contained in:
zeppi 2021-06-04 14:58:32 -04:00 committed by jessopb
parent 7eeb3d3c55
commit a0c2f8fa40
8 changed files with 19 additions and 17 deletions

View file

@ -15,6 +15,7 @@ const CUSTOM_ROOT = path.resolve(__dirname, '../custom/');
const STATIC_ROOT = path.resolve(__dirname, '../static/');
const UI_ROOT = path.resolve(__dirname, '../ui/');
const DIST_ROOT = path.resolve(__dirname, 'dist/');
const WEB_STATIC_ROOT = path.resolve(__dirname, 'static/');
const WEB_PLATFORM_ROOT = __dirname;
const isProduction = process.env.NODE_ENV === 'production';
const hasSentryToken = process.env.SENTRY_AUTH_TOKEN !== undefined;
@ -58,12 +59,11 @@ const copyWebpackCommands = [
to: `${DIST_ROOT}/public/font/`,
},
{
from: `${STATIC_ROOT}/pwa/`,
from: `${WEB_STATIC_ROOT}/pwa/`,
to: `${DIST_ROOT}/public/pwa/`,
},
// move serviceWorker to directory root
{
from: `${STATIC_ROOT}/pwa/serviceWorker.js`,
from: `${WEB_STATIC_ROOT}/pwa/serviceWorker.js`,
to: `${DIST_ROOT}/`,
},
];