Created
May 22, 2015 18:39
-
-
Save adamkudrna/22b4dc5a35128dc36c24 to your computer and use it in GitHub Desktop.
BrowserSync + Tracy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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