docs: remove node-sass, gh-pages config

This commit is contained in:
Eric Liu 2020-10-04 11:33:41 -07:00
commit 5ac29b52d5
5 changed files with 47 additions and 725 deletions

View file

@ -6,9 +6,8 @@
"dev:svite": "svite",
"build": "run-s build:*",
"build:routify": "routify run -b",
"build:svite": "svite build --assetsDir=assets",
"postbuild": "node scripts/postbuild",
"deploy": "npx gh-pages -d dist"
"build:svite": "svite build",
"postbuild": "node scripts/postbuild"
},
"devDependencies": {
"@sveltech/routify": "^1.9.9",
@ -16,7 +15,6 @@
"clipboard-copy": "^3.1.0",
"fs-extra": "^9.0.1",
"mdsvex": "^0.8.8",
"node-sass": "^4.14.1",
"npm-run-all": "^4.1.5",
"playwright": "^1.4.2",
"polka": "^0.5.2",

View file

@ -30,7 +30,7 @@ async function processHtml(html, { dir, outfilePath }) {
);
}
console.log("Prerendered:", outfilePath);
console.log("Prerendered path:", outfilePath);
}
const app = polka()
@ -102,16 +102,6 @@ const app = polka()
const __index = await scrape(page);
await processHtml(__index, { outfilePath: `${OUT_DIR}/index.html` });
await fs.writeFile(
path.join(OUT_DIR, "_config.yml"),
`include:
- _.js
- _*.js
- assets
- assets/*_.js
- assets/*.js`
);
await browser.close();
await app.server.close();
process.exit(0);

File diff suppressed because it is too large Load diff