Skip to content

Commit

Permalink
Fixes #13, watch means dev mode
Browse files Browse the repository at this point in the history
Though, we probably still want serving
  • Loading branch information
moshen committed Jun 16, 2013
1 parent 9174ea3 commit 34e9eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -219,7 +219,7 @@ no bundles are created and all the referenced files are
included individually without modification.

Dev mode is also automatically enabled when using
`jekyll server` or when a top level configuration key: `dev`
`jekyll server`, `jekyll --watch` or when a top level configuration key: `dev`
is set to true.

Default: `false`.
Expand Down
4 changes: 2 additions & 2 deletions asset_bundler.rb
Expand Up @@ -194,8 +194,8 @@ def self.config(context)
ret_config['dev'] = context.registers[:site].config["dev"] ? true : false
end

# Let's assume that when flag 'watch' is enabled, we want dev mode
if context.registers[:site].config['watch']
# Let's assume that when flag 'watch' or 'serving' is enabled, we want dev mode
if context.registers[:site].config['serving'] || context.registers[:site].config['watch']
ret_config['dev'] = true
end

Expand Down

0 comments on commit 34e9eef

Please sign in to comment.