|
@@ -23,14 +23,6 @@ function patchSingleFileHtml(htmlPath, adapter) {
|
|
|
.replace(/<style\s+crossorigin\s+rel="stylesheet">/g, "<style>")
|
|
.replace(/<style\s+crossorigin\s+rel="stylesheet">/g, "<style>")
|
|
|
.replace(/<style\s+crossorigin>/g, "<style>");
|
|
.replace(/<style\s+crossorigin>/g, "<style>");
|
|
|
|
|
|
|
|
- // Google 平台需要引入 exitapi.js,CTA 才能正常跳转
|
|
|
|
|
- if (adapter === "google") {
|
|
|
|
|
- html = html.replace(
|
|
|
|
|
- "</head>",
|
|
|
|
|
- '<script src="https://tpc.googlesyndication.com/pagead/js/exitapi.js"></script></head>',
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
fs.writeFileSync(htmlPath, html);
|
|
fs.writeFileSync(htmlPath, html);
|
|
|
}
|
|
}
|
|
|
|
|
|