0.0.1 • Published 2 years ago
@hot-page/dev-server v0.0.1
Hot Page Development Server
Serve pages from Hot Page with assets from localhost (or wherever).
const startHotDevServer = require('@hot-page/dev-server')
startHotDevServer({
site: 'first',
port: 8080,
replaceAssets: {
'https://unpkg.com/XXX.css': 'http://localhost:8000/YYY.js'
},
addAssets: [
'http://localhost:8000/your.js',
'http://localhost:8000/your.css',
],
})
With this configuration, the dev server will load at port 8080 and serve pages
from first.hot.page
. If the stylesheet https://unpkg.com/XXX.css
is present
on the page, it will be removed and the script http://localhost:8000/YYY.js
will be added. The stylesheet your.css
and the script your.js
will also be
added to the page.
0.0.1
2 years ago