Quickstart - SubZtep/typescript-boilerplate GitHub Wiki
pages/index.pug
:new: doctype python
html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1")
// bundle
link(rel="stylesheet" type="text/css" href="index.css")
style(type="text/css").
html, body { width: 100vw; height: 100vh; padding: 0; margin: 0; }
body
src/main.ts
:new: import "../styles/index.css"
document.addEventListener("DOMContentLoaded", () => {
console.log("Loaded")
})
styles/index.css
:new: html, body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
}
src/main.ts
:new: :soon::put_litter_in_its_place: package.json
:hammer: "main": "src/main.ts"