Skip to content

Commit

Permalink
fix: 🐛 Fixed nodemon logging before server start
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Jan 9, 2022
1 parent 1f15b7d commit 9347f07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/cli/src/scripts/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ function initNodemon(compiler: MultiCompiler, args: CliArgs) {
({ emitted, name }) => emitted && !name.includes('app.server.js')
);

if (emittedAssets?.length) {
console.log('stats', stats.hasErrors());

if (emittedAssets?.length && serverHasStarted) {
logger.info('Rebooting server due to configuration changes...');
nodemon.restart();
}
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,8 @@ export default async (
[
// Generate manifest for client static
new WebpackManifestPlugin({
fileName: `${isEsVersion ? 'js.es' : 'js'}/manifest.json`
fileName: `static/${isEsVersion ? 'js.es' : 'js'}/manifest.json`,
filter: file => /\.(js|css)$/.test(file.name)
}),

// Removes generated empty script caused by non-js entry points
Expand Down

0 comments on commit 9347f07

Please sign in to comment.