debuga
v1.0.2
Published
Do your debug workflow more visible on local server.
Downloads
148
Maintainers
Readme
debuga
Do your debug workflow more visible on local server.
Install
npm i -D debuga
Use with browser-sync
var debuga = require('debuga');
var bs = require('browser-sync');
bs.init({
files: ['dist/**/*'],
reloadOnRestart: true,
server: {
baseDir: [
'app/resources',
'dist'
],
directory: false,
middleware: [debuga()]
}
})
Options
favicon
Default: null
| String
. If null
then set debug default favicon , else you can set custom path to favicon.
debuga({
favicon: 'path/to/favicon.ico'
})
titlePrefix
Default: DEBUG —
| String
. Set title prefix.
debuga({
titlePrefix: 'DEBUG — '
})
dist
Default: dist
| String
. Set serving folder with HTML files.
debuga({
dist: 'path/to/html/files'
})
License
MIT.