npm nuxt 1.0.0-rc3
v1.0.0-rc3

latest releases: 3.11.2, 3.11.1, 3.11.0...
6 years ago

⚠️ 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 and static (~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 in nuxt.config.js, use build.extend instead
  • injectAs has been removed in plugins, you can inject your plugins by accessing app (see example)
  • process.BROWSER_BUILD has been removed in flavour of process.browser
  • process.SERVER_BUILD has been removed in flavour of process.server
  • Remove ~store and ~router aliases, use plugins to access router and store (see example)

Features / Improvements

  • Generate 100% valid HTML code
  • IE9+ compatible
  • Perfs: ETAG and HTTP2 headers
  • Modules system
  • mode: "spa" to create SPA (WIP)
  • Add -p (port) and -H (host) option for nuxt dev and nuxt 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 customise webpack-dev-middleware options
  • Add build.hotMiddleware to customise webpack-hot-middleware options
  • Add build.extractCSS option (default to false)

Context

  • nuxtServerInit has now access to context.redirect & context.error
  • context is now given to plugins when they are exporting a function
  • Add context.from (only available on client-side when navigating)
  • Add context.beforeNuxtRender(fn) with async fn({ nuxtState, Components }) (only available on server-side)

Don't miss a new nuxt release

NewReleases is sending notifications on new releases.