improve: external urls use .min again

This commit is contained in:
Zack Spear
2020-12-16 19:48:09 -08:00
parent 67198583aa
commit 87cca42969

View File

@@ -1781,14 +1781,14 @@ const injectJS = (src) => {
};
// by default prod is loaded from hosted sources
let vueFile = `${VUE_CDN_PREFIX}/dist/vue.min.js`;
let wcEntryFile = 'https://registration.unraid.net/wc/unraid.js';
let wcEntryFile = 'https://registration.unraid.net/wc/unraid.min.js';
// determine what source we should use
if (UPC_ENV !== 'production') console.debug('[UPC_ENV]', UPC_ENV);
switch (UPC_ENV) {
case 'staging':
// min version of staging
vueFile = `${VUE_CDN_PREFIX}/dist/vue.min.js`;
wcEntryFile = 'https://registration-dev.unraid.net/wc/unraid.js';
wcEntryFile = 'https://registration-dev.unraid.net/wc/unraid.min.js';
break;
case 'staging-debug':
// non-min version of staging