Skip to content

Commit

Permalink
Add Hapi good/good-console logger to the generator Hapi app (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
didi0613 authored and jchip committed Aug 23, 2018
1 parent 313fe11 commit fa3d7a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ return {
lodash: "^4.17.10",
"react-router-config": "^1.0.0-beta.4",
"react-router-dom": "^4.3.1",
milligram: "^1.3.0"
milligram: "^1.3.0",
good: "^7.3.0",
"good-console": "^7.1.0"
},
devDependencies: {
"electrode-archetype-react-app-dev": "^5.3.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ const webappPlugin = () => {

module.exports = {
plugins: {
good: {
module: "good",
options: {
reporters: {
myConsoleReporter: [
{
module: "good-console"
},
"stdout"
]
}
}
},
"webpack-dev": {
module: "electrode-archetype-react-app-dev/lib/webpack-dev-hapi",
enable: process.env.WEBPACK_DEV_MIDDLEWARE === "true" && process.env.WEBPACK_DEV === "true",
Expand Down

0 comments on commit fa3d7a5

Please sign in to comment.