Skip to content

Commit

Permalink
Merge pull request #48 from aarondfrancis/master
Browse files Browse the repository at this point in the history
Allow Browser Sync port to be specified from command line
  • Loading branch information
mattstauffer committed Jun 25, 2016
2 parents be35665 + 46ab273 commit dc97327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ elixir.config.publicPath = 'source';

elixir(function(mix) {
var env = argv.e || argv.env || 'local';
var port = argv.p || argv.port || 3000;

mix.sass('main.scss')
.exec('jigsaw build ' + env, ['./source/*', './source/**/*', '!./source/_assets/**/*'])
.browserSync({
port: port,
server: { baseDir: 'build_' + env },
proxy: null,
files: [ 'build_' + env + '/**/*' ]
Expand Down

0 comments on commit dc97327

Please sign in to comment.