package
Bankai assets compiler for Fastify
npm install fastify-pigeonGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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.
npm i fastify-pigeon --saveSimply require this plugin, pass the entry file and you are done!
const fastify = require('fastify')()
fastify.register(require('fastify-pigeon'), {
entryFile: './client.js'
})
fastify.listen(3000, err => {
if (err) throw err
console.log('Server listenting on localhost:', fastify.server.address().port)
})If you are including fastify-pigeon in any test run or in production, you must disable the automatic watch mode:
const fastify = require('fastify')()
fastify.register(require('fastify-pigeon'), {
entryFile: './client.js',
options: {
watch: false
}
})
fastify.listen(3000, err => {
if (err) throw err
console.log('Server listenting on localhost:', fastify.server.address().port)
})entryFile: Your application entry pointbaseURL: a custom url, default '/'options: the options object for bankaiThis project is kindly sponsored by:
Licensed under MIT.
Estimated unpacked size across 67 packages.
13.0 MB+
Includes dependencies.