⚠️ This is still in heavy development, the API will not change to 1.0
but you may except some bugs.
We are working hard on the documentation, please wait for the new documentation before creating new issues.
We are also working on updating the templates and examples.
Installation
npm install --save nuxt@next
Breaking Changes
- Aliases are now
~
,~~
,@
,@@
,assets
andstatic
(~plugins
should be renamed to~/plugins
for example) - Programmatic Usage is different now, see custom-server example and updated express template
build.loaders
has been removed innuxt.config.js
, usebuild.extend
insteadinjectAs
has been removed in plugins, you can inject your plugins by accessingapp
(see example)process.BROWSER_BUILD
has been removed in flavour ofprocess.browser
process.SERVER_BUILD
has been removed in flavour ofprocess.server
- Remove
~store
and~router
aliases, use plugins to accessrouter
andstore
(see example)
Features / Improvements
- Generate 100% valid HTML code
IE9
+ compatible- Perfs:
ETAG
andHTTP2
headers - Modules system
mode: "spa"
to create SPA (WIP)- Add
-p
(port) and-H
(host) option fornuxt dev
andnuxt start
- Dynamic Component Injection with Webpack (see example)
- Add
nuxtChildKey
, see #1022 (comment)
nuxt.config.js
- Add
generate.concurrency
(default:500
) - Add
build.devMiddleware
to customisewebpack-dev-middleware
options - Add
build.hotMiddleware
to customisewebpack-hot-middleware
options - Add
build.extractCSS
option (default tofalse
)
Context
nuxtServerInit
has now access tocontext.redirect
&context.error
context
is now given to plugins when they are exporting afunction
- Add
context.from
(only available on client-side when navigating) - Add
context.beforeNuxtRender(fn)
withasync fn({ nuxtState, Components })
(only available on server-side)