diff --git a/packages/react-server-cli/package.json b/packages/react-server-cli/package.json index d1c9e7e73..38efc87db 100644 --- a/packages/react-server-cli/package.json +++ b/packages/react-server-cli/package.json @@ -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", diff --git a/packages/react-server-cli/src/compileClient.js b/packages/react-server-cli/src/compileClient.js index 459430905..fb7664248 100644 --- a/packages/react-server-cli/src/compileClient.js +++ b/packages/react-server-cli/src/compileClient.js @@ -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: {