Development
import styles from './style.module.css'
const el = document.createElement('div')
el.className = styles.title
el.textContent = 'Hello Poi!'
document.body.appendChild(el)
Run poi --serve --open
in the project and you will be automatically redirected to http://localhost:4000
.
By default Poi uses index.js
or index.ts
as entry file, however you can also use index.html
.