-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vince Speelman
committed
Jul 1, 2016
1 parent
189caa9
commit dfebd7b
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
var html_out = process.env.npm_package_config_html_out; | ||
var css_out = process.env.npm_package_config_css_out; | ||
var out = process.env.npm_package_config_out; | ||
|
||
/** | ||
* Require Browsersync | ||
*/ | ||
var bs = require('browser-sync').create(); | ||
|
||
/** | ||
* Run Browsersync with server config | ||
*/ | ||
bs.init({ | ||
server: out, | ||
files: [css_out], | ||
port: 1337, | ||
open: false, | ||
plugins: [ | ||
{ | ||
module: 'bs-html-injector', | ||
options: { | ||
files: [html_out] | ||
} | ||
} | ||
] | ||
}); |
This file contains 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