Skip to content

Commit

Permalink
Add json loader to webpack (redfin#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade authored and davidalber committed Jul 24, 2016
1 parent 910f0ee commit 6994380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-server-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"express": "~4.14.0",
"extract-text-webpack-plugin": "~0.8.2",
"file-loader": "~0.8.5",
"json-loader": "^0.5.4",
"mkdirp": "~0.5.1",
"node-libs-browser": "~0.5.2",
"null-loader": "~0.1.1",
Expand Down
5 changes: 5 additions & 0 deletions packages/react-server-cli/src/compileClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ const packageCodeForBrowser = (entrypoints, outputDir, outputUrl, hot, minify, l
loader: "file",
exclude: /node_modules/,
},
{
test: /\.json/,
loader: "json",
exclude: /node_modules/,
},
],
},
resolve: {
Expand Down

0 comments on commit 6994380

Please sign in to comment.