diff --git a/server/bundler/css-hot-reload.js b/server/bundler/css-hot-reload.js index 2dc80132b1820..07d2e968b2311 100644 --- a/server/bundler/css-hot-reload.js +++ b/server/bundler/css-hot-reload.js @@ -117,7 +117,13 @@ function setup( io ) { fs.readdirSync( PUBLIC_DIR ).forEach( function( file ) { if ( '.css' === file.slice( -4 ) ) { - var fullPath = path.join( PUBLIC_DIR, file ); + const fullPath = path.join( PUBLIC_DIR, file ); + publicCssFiles[ fullPath ] = md5File.sync( fullPath ); + } + } ); + fs.readdirSync( path.join( PUBLIC_DIR, 'sections' ) ).forEach( function( file ) { + if ( '.css' === file.slice( -4 ) ) { + const fullPath = path.join( PUBLIC_DIR, 'sections', file ); publicCssFiles[ fullPath ] = md5File.sync( fullPath ); } } );