Skip to content

Commit

Permalink
chore(hotreload): only hot reload in dev (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed May 13, 2016
1 parent ca8fd1e commit 398f806
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ const APP_ENTRY = [
paths.docsSrc('DocsApp.js'),
]

webpackConfig.entry = {
app: __DEV__
? [webpackHotMiddlewareEntry, ...APP_ENTRY]
: [...APP_ENTRY],
webpackConfig.entry = __DEV__ ? {
app: [
webpackHotMiddlewareEntry,
...APP_ENTRY,
],
vendor: [
webpackHotMiddlewareEntry,
...config.compiler_vendor,
],
} : {
app: APP_ENTRY,
vendor: config.compiler_vendor,
}

// ------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ deployment:
development:
branch: /^(?!master).*$/
commands:
- gulp docs
- NODE_ENV=production gulp docs
- $(npm bin)/ta-script aws/stage -d docs/build -r $CIRCLE_PROJECT_REPONAME -b $CIRCLE_BRANCH
production:
branch: master
commands:
- git config --global user.email "devteam+deweybot@technologyadvice.com"
- git config --global user.name "deweybot"
- $(npm bin)/ta-script circle_ci/create_changelog
- npm run deploy:docs
- NODE_ENV=production npm run deploy:docs

0 comments on commit 398f806

Please sign in to comment.