diff --git a/examples/custom-routes/nuxt.config.js b/examples/custom-routes/nuxt.config.js index 38c39527da..bc4d11faf6 100644 --- a/examples/custom-routes/nuxt.config.js +++ b/examples/custom-routes/nuxt.config.js @@ -1,5 +1,5 @@ module.exports = { routes: [ - { name: 'user', path: '/users/:id', component: 'pages/_user.vue' } + { name: 'user', path: '/users/:id', component: 'pages/_user' } ] } diff --git a/lib/app/router.js b/lib/app/router.js index 5075e4d2c5..dcf3b5feed 100644 --- a/lib/app/router.js +++ b/lib/app/router.js @@ -32,7 +32,7 @@ export default new Router({ { path: '<%= route.path %>', component: <%= route._name %><% if (route.name) { %>, - name: <%= route.name %><% } %> + name: '<%= route.name %>'<% } %> }<%= (i + 1 === routes.length ? '' : ',') %> <% }) %> ] diff --git a/package.json b/package.json index 3e70edfbaa..2f77ee5854 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt", - "version": "0.1.6", + "version": "0.1.7", "description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)", "main": "index.js", "license": "MIT",