Skip to content

Commit

Permalink
Build: Add CSS files in /public/sections to the watched hot-reload …
Browse files Browse the repository at this point in the history
…files list (#19228)
  • Loading branch information
ryelle authored Nov 6, 2017
1 parent 9a5a377 commit 5126c3f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/bundler/css-hot-reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
} );
Expand Down

0 comments on commit 5126c3f

Please sign in to comment.