You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
559 B
22 lines
559 B
/** |
|
* Require Browsersync |
|
*/ |
|
var browserSync = require('browser-sync').create(); |
|
|
|
/** |
|
* Run Browsersync with server config |
|
* You can use an arrays for files to specify multiple files |
|
*/ |
|
browserSync.init({ |
|
proxy: "example.com", |
|
serveStatic: ["app/static"], |
|
files: "app/static/_custom.css", |
|
snippetOptions: { |
|
rule: { |
|
match: /<\/head>/i, |
|
fn: function (snippet, match) { |
|
return '<link rel="stylesheet" type="text/css" href="/_custom.css"/>' + snippet + match; |
|
} |
|
} |
|
} |
|
});
|
|
|