35

Next.js 8.4: News for build process, runtime and more

 5 years ago
source link: https://www.tuicool.com/articles/hit/bMRnMr6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

HelpDev Next.js 8.4: News for build process, runtime and more

Next.js 8.4 is here and brings a surprising number of new features: Where other tools with this version number only implement bugfixes, Next.js has changes for the runtime, the build process and more to discover.

Next.js is a framework for server-side rendering with React. After a new major version was released in February with v8.0, the team behind the framework has again introduced a release in the official Next blog: Next.js 8.4. What sounds like a very small release, but still brings some innovations. This includes reducing the file size generated by Next.js at runtime. Among other things, the X-Powered-By header was removed, thus reducing the HTTP payload. In addition, withRouter does not need more hoist-non-react-statics . That too reduced the file size at runtime.

Next.js 8.4: What’s new in the framework

The build process of Next.js has now been made more deterministic and can therefore rely more on cached file versions. This mainly concerns the minification of files that have not been changed since the previous build process. Due to the more deterministic approach, the likelihood is higher that a reusable version already exists in the cache. However, this feature is not automatically available to all users of Next.js. Implementation details can be found in the release notes in the Next.js blog.

In addition, Next.js 8.4 brings a new viewport meta tag for CSS media queries. Here you have found that many projects manually define a viewport. This step is now taken over by the framework. More information about these and other new features in Next.js 8.4 can be found in the Release Notes on GitHub.

The post Next.js 8.4: News for build process, runtime and more appeared first on HelpDev.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK