Skip to content

Instantly share code, notes, and snippets.

@adamkudrna
Created May 22, 2015 18:39
Show Gist options
  • Save adamkudrna/22b4dc5a35128dc36c24 to your computer and use it in GitHub Desktop.
Save adamkudrna/22b4dc5a35128dc36c24 to your computer and use it in GitHub Desktop.
BrowserSync + Tracy
'use strict';
module.exports = {
dev: {
bsFiles: {
src : [
'<%= paths.dist %>/css/*.css',
'<%= paths.dist %>/js/*.js',
'<%= paths.dist %>/images/**/*.svg',
'<%= paths.dist %>/images/**/*.png',
'<%= paths.dist %>/images/**/*.jpg',
'src/AppBundle/Resources/views/**/*'
]
},
options: {
proxy: '<%= devUrl %>',
watchTask: true,
snippetOptions: {
rule: {
match: /<body[^>]*>/i,
fn: function (snippet, match) {
if (match === '<body id=\\"tracy-debug\\">') {
return match
}
return match + snippet;
}
}
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment