1.0.6 • Published 2 years ago
parcel-network-dev v1.0.6
GETTING STARTED
(Please install this package in your project and it requires parcel to be installed before.) By default parcel dosen't support automated ip detection for hosting on local network. This package aims to solve that problem by automatically detecting the local network ip. If not found it will fall back on localhost
INSTALLATION
npm install parcel-network-devHOW TO USE
SET THE ENTRY FILE (default to index.html)
pnd --entry=./index.jsSET PORT NUMBER (default to 1234)
pnd --entry=./index.js --port=5000CREATE URL QR-CODE
pnd --entry=./index.js --qrcodeIt will create the qrcode for the server url.
HTTPS SUPPORT
pnd --entry=./index.js --httpsIt will runs the dev server and hmr server over HTTPS.
ASK FOR HELP
pnd --helpCOMMAND
add pnd in your script in package.json
"scripts": {
"dev": "pnd"
}