Authored by 陈峰

commit

... ... @@ -50,10 +50,10 @@ const domains = {
module.exports = {
app: 'h5',
appVersion: '6.6.0', // 调用api的版本
appName: 'yohobuywap-node',
appName: 'yohobuywap-node-activity',
port: 6001,
siteUrl: '//m.yohobuy.com',
assetUrl: '//activity.yoho.cn:5001/yohobuywap-node/',
assetUrl: '//activity.yoho.cn:5001/yohobuywap-node-activity/',
testCode: 'yoho4946abcdef#$%&!@',
domains: domains,
... ... @@ -184,7 +184,7 @@ module.exports = {
if (isProduction) {
Object.assign(module.exports, {
assetUrl: '//cdn.yoho.cn/yohobuywap-node/',
assetUrl: '//cdn.yoho.cn/yohobuywap-node-activity/',
domains: {
api: 'http://api.yoho.yohoops.org/',
ufo: 'http://ufoapi.yohoops.org/',
... ... @@ -296,7 +296,7 @@ if (isProduction) {
});
} else if (isTest) {
Object.assign(module.exports, {
assetUrl: '//cdn.yoho.cn/yohobuywap-node/',
assetUrl: '//cdn.yoho.cn/yohobuywap-node-activity/',
domains: {
api: process.env.TEST_API || 'http://api-test3.dev.yohocorp.com/',
ufo: process.env.UFO_API || 'http://java-yohoufo-fore.test3.ingress.dev.yohocorp.com/ufo-gateway/',
... ...
importScripts("https://cdn.yoho.cn/workbox/workbox-sw.js", "https://cdn.yoho.cn/workbox/workbox-core.prod.js", "https://cdn.yoho.cn/workbox/workbox-precaching.prod.js", "https://cdn.yoho.cn/workbox/workbox-routing.prod.js", "https://cdn.yoho.cn/workbox/workbox-cache-expiration.prod.js", "https://cdn.yoho.cn/workbox/workbox-strategies.prod.js", "//cdn.yoho.cn/yohobuywap-node/precache-manifest.5892d915861d21c8df45a91e2d832243.js");
importScripts("https://cdn.yoho.cn/workbox/workbox-sw.js", "https://cdn.yoho.cn/workbox/workbox-core.prod.js", "https://cdn.yoho.cn/workbox/workbox-precaching.prod.js", "https://cdn.yoho.cn/workbox/workbox-routing.prod.js", "https://cdn.yoho.cn/workbox/workbox-cache-expiration.prod.js", "https://cdn.yoho.cn/workbox/workbox-strategies.prod.js", "//cdn.yoho.cn/yohobuywap-node-activity/precache-manifest.6bf90331e7579a08f1f2284eb0839c70.js");
/* eslint-env worker */
/* global FetchEvent */
... ... @@ -15,7 +15,7 @@ const NAME_CACHE_PREFIX = 'yoho-cache';
const precaches = [
{
url: '/offline.html',
revision: 'offline-revision-0.0.2'
revision: 'offline-revision-0.0.3'
},
{
url: '//cdn.yoho.cn/pwa/404.png',
... ...