From 57ef76da5ecf7e2bb8623162ecea59dbe1e1dbef Mon Sep 17 00:00:00 2001 From: Sidhartha Chatterjee Date: Thu, 3 Jan 2019 18:29:50 +0530 Subject: [PATCH] Add webpack hot reloading for gatsby-plugin-netlify-cms --- packages/gatsby-plugin-netlify-cms/src/gatsby-node.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js index 687763150e755..0d48519b7b049 100644 --- a/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js +++ b/packages/gatsby-plugin-netlify-cms/src/gatsby-node.js @@ -103,6 +103,8 @@ exports.onCreateWebpackConfig = ( }, }), + stage === `develop` && new webpack.HotModuleReplacementPlugin(), + /** * Use a simple filename with no hash so we can access from source by * path.