The current implementation is based on @igorminar's [angular-io-v42][1]. It is using Protractor to request all docs URLs, let them fallback to `/index.html` and save the rendered page. [1]: https://github.com/IgorMinar/angular-io-v42/tree/05508ab3/tools/prerenderer Fixes #15104
11 lines
196 B
JavaScript
11 lines
196 B
JavaScript
'use strict';
|
|
|
|
// Imports
|
|
const sh = require('shelljs');
|
|
const { CONTENT_DIR, TMP_OUTPUT_DIR } = require('./constants');
|
|
|
|
sh.config.fatal = true;
|
|
|
|
// Run
|
|
sh.cp('-r', TMP_OUTPUT_DIR, CONTENT_DIR);
|