Move to using vue-cli-service instead of parcel (2.1MB to 850KB)

This commit is contained in:
MattIPv4
2020-05-26 23:23:07 +01:00
parent 5ccb6ddfbe
commit 2f6ad2634e
12 changed files with 4725 additions and 105 deletions

View File

@@ -0,0 +1,14 @@
const path = require('path');
const fs = require('fs');
// Fetch the posthtml template and convert it to an ejs template
const main = () => {
const buildDir = path.join(__dirname, '..', '..', '..', 'build');
let template = fs.readFileSync(path.join(buildDir, 'base.html'), 'utf8');
template = template.replace('<block name="title"></block>', 'NGINXConfig | ');
template = template.replace('<block name="head"></block>', '');
template = template.replace('<block name="content"></block>', '<div id="app"></div>');
fs.writeFileSync(path.join(buildDir, 'index.html'), template);
};
main();