UNPKG

html-test

Version:

Node.js library for testing HTML files on the fly and output errors in the console with Gulp.js compatibilities

15 lines (9 loc) 256 B
import express from 'express' import htmlTest from '.' const app = express() const port = 3000 htmlTest('./html/**/*.html') app.get('/', async (req, res) => { res.send('test') }) app.listen(port, () => console.log(`Server: http://localhost:3000/`))