process(production = false) {
        return __awaiter(this, void 0, void 0, function* () {
            const page = this.input
                .slice(this.contentDir.length + 1, this.input.lastIndexOf("."))
                .split("/")[0]
                .toLowerCase();
            const markdown = yield utils.readFile(this.input, "utf8");
            const html = yield this.parse(production, markdown, page);
            yield utils.mkdirp(utils.dirname(this.output));
            yield utils.outputFile(this.output, 
            // prettier-ignore
            production ? html_minifier_1.minify(html, {
                collapseWhitespace: true,
                minifyCSS: { level: 2 },
                minifyJS: true
            }) : html);
        });
    }
/**
     * Processes the content.
     *
     * @param production - If the content should be processed for production.
     */
Processes the content.
@param production - If the content should be processed for production.
Processes the content . @param production - If the content should be processed for production .
process(production = false) {
        return __awaiter(this, void 0, void 0, function* () {
            const page = this.input
                .slice(this.contentDir.length + 1, this.input.lastIndexOf("."))
                .split("/")[0]
                .toLowerCase();
            const markdown = yield utils.readFile(this.input, "utf8");
            const html = yield this.parse(production, markdown, page);
            yield utils.mkdirp(utils.dirname(this.output));
            yield utils.outputFile(this.output, 
            production ? html_minifier_1.minify(html, {
                collapseWhitespace: true,
                minifyCSS: { level: 2 },
                minifyJS: true
            }) : html);
        });
    }
process ( production = false ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const page = this . input . slice ( this . contentDir . length + 1 , this . input . lastIndexOf ( "." ) ) . split ( "/" ) [ 0 ] . toLowerCase ( ) ; const markdown = yield utils . readFile ( this . input , "utf8" ) ; const html = yield this . parse ( production , markdown , page ) ; yield utils . mkdirp ( utils . dirname ( this . output ) ) ; yield utils . outputFile ( this . output , production ? html_minifier_1 . minify ( html , { collapseWhitespace : true , minifyCSS : { level : 2 } , minifyJS : true } ) : html ) ; } ) ; }
Processes the content.
Processes the content .
// prettier-ignore