Features
- Add the
--analyze
(or-a
) option tonuxt build
, this will launch the bundle analyzer to let you see how to improve the size of your bundle. You can also use thebuild.analyze
option, see documentation. - It is possible to extend the routes with the
extendRoutes
property in thenuxt.config.js
file, see documentation. - You can customise the
scrollBehavior
of vue-router vianuxt.config.js
, see documentation.
Improvements
nuxt <command>
does not spawn a process anymore, this facilitates the communication between the processes (@yuchonghua via #147)nuxt build
andnuxt generate
now exit with the status code 1 when the webpack build fail (fix #125)- Improve error handling in
data
andfetch
to avoid recursive JSON error (fix #134) nuxt.render
sends back a promise to know when the page has been rendered (via #157)
Dependencies
- Remove
cross-spawn
dependency - Use webpack
v2.2.0
- Upgrade Vue to
v2.1.10
and vue-router tov2.1.3