fastify-pigeon
If you need to compile (browserify style!) your code, this plugin is for you! Internally it uses bankai, so refer to its documentation for the options.
fastify-pigeon will automatically live-reload your HTML and regenerate your bundle whenever your code change. This can be disabled in test or in production.
Install
npm i fastify-pigeon --save
Usage
Simply require this plugin, pass the entry file and you are done!
const fastify = fastify fastify
In tests or in production
If you are including fastify-pigeon in any test run or in production, you must disable the automatic watch mode:
const fastify = fastify fastify
Options
entryFile
: Your application entry pointbaseURL
: a custom url, default'/'
options
: the options object for bankai
Acknowledgements
This project is kindly sponsored by:
License
Licensed under MIT.