UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

15 lines 597 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.transformIndexHtml = transformIndexHtml; const tslib_1 = require("tslib"); const fs_1 = tslib_1.__importDefault(require("fs")); const path_1 = tslib_1.__importDefault(require("path")); /** * * @param content */ async function transformIndexHtml(content) { const script = await fs_1.default.promises.readFile(path_1.default.join(__dirname, '../scripts/restore-theme.js'), 'utf-8'); return content.replace(/<head>/, `<head><script>${script}</script>`); } //# sourceMappingURL=transform-index-html.js.map