Skip to content

Commit

Permalink
Only run the service-worker in development if config enables it. (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorfin authored and mermop committed Oct 2, 2017
1 parent 4f7fd11 commit 7740c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}
end

dev_server_task = :enable_sw ? "npm run watch:sw" : "npm run watch"
dev_server_task = :enable_sw == true ? "npm run watch:sw" : "npm run watch"

activate :external_pipeline,
name: :webpack,
Expand Down

0 comments on commit 7740c59

Please sign in to comment.