...
|
...
|
@@ -12,14 +12,14 @@ const vender = { |
|
|
};
|
|
|
|
|
|
const protocolPages = routes.filter(r => r.protocol);
|
|
|
const allFiles = [`degrade-${pkg.version}.html`].concat(manifest.initial, manifest.async);
|
|
|
const allFiles = [`degrade-${pkg.version}.html`, `loading-${pkg.version}.html`].concat(manifest.initial, manifest.async);
|
|
|
|
|
|
const files = allFiles.map(file => path.join(dir, file)).join(' ');
|
|
|
const zipFile = `${pkg.version}.zip`;
|
|
|
|
|
|
shelljs.exec(`zip -j -q ${path.join(dir, zipFile)} ${files}`);
|
|
|
|
|
|
vender.default = `https://cdn.yoho.cn/${pkg.name}/loading-${pkg.version}.html`;
|
|
|
vender.default = `loading-${pkg.version}.html`;
|
|
|
allFiles.forEach(file => {
|
|
|
const paths = file.split('/');
|
|
|
|
...
|
...
|
|