Sha256: 6ca6b7105e0933989fcc62930a6b0f4e3aa2ed22f904f5cf6cbaba4d5180c7e4
Contents?: true
Size: 388 Bytes
Versions: 19
Compression:
Stored size: 388 Bytes
Contents
'use strict'; function runBonjour({ port }) { const bonjour = require('bonjour')(); const os = require('os'); bonjour.publish({ name: `Webpack Dev Server ${os.hostname()}:${port}`, port, type: 'http', subtypes: ['webpack'], }); process.on('exit', () => { bonjour.unpublishAll(() => { bonjour.destroy(); }); }); } module.exports = runBonjour;
Version data entries
19 entries across 18 versions & 6 rubygems