Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Quickstart

Andras Serfozo edited this page Nov 21, 2020 · 1 revision

🆕 pages/index.pug

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

import "../styles/index.css"

document.addEventListener("DOMContentLoaded", () => {
  console.log("Loaded")
})

🆕 styles/index.css

html, body {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
}

🆕 src/main.ts

🔜🚮 package.json 🔨 "main": "src/main.ts"

Clone this wiki locally