Since NextJS log is no longer part of webpack logs, we cannot use FilterWarningsPlugin
. Instead, use node level stdout filter, for example, intercept-stdout
.
Tag Archives: NextJS
When Webpack Takes Too Long to Process Images
Sorting out images in Webpack is not too bad up to a point. The url-loader
+ file-loader
combination is usually enough to satisfy needs. However, when you have too many require()
for large images, it can take up to 20s or longer to hot-reload after a compile…
Here’s how to mitigate the situation.
Continue readingHow to Configure Sub-Routes in NextJS
For sub-routes like guides/post-slug
to work, 3 pieces need to be in place: