@nuxtjs/router
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -13,3 +13,5 @@ 'use strict'; | ||
// Disable parsing `pages/` | ||
this.nuxt.options.build.createRoutes = function () {}; | ||
this.nuxt.options.build.createRoutes = function () { | ||
return []; | ||
}; | ||
@@ -16,0 +18,0 @@ // Add ${srcDir}/router.js as the main template for routing |
{ | ||
"name": "@nuxtjs/router", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Nuxt module to use router.js instead of pages/ directory", | ||
@@ -44,4 +44,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"jest-cli": "^21.0.2", | ||
"nuxt-module-builder": "latest" | ||
} | ||
} |
@@ -6,5 +6,3 @@ # Nuxt Router Module | ||
[](https://codecov.io/gh/nuxt-community/router-module) | ||
[](https://david-dm.org/nuxt-community/router-module) | ||
[](http://standardjs.com) | ||
@@ -14,7 +12,7 @@ | ||
[📖 **Release Notes**](./CHANGELOG.md) | ||
[📖 **Release Notes**](https://github.com/nuxt-community/router-module/releases) | ||
## Features | ||
The module features | ||
Use your own `router.js` to handle your routes into your [Nuxt.js](https://nuxtjs.org) application. | ||
@@ -21,0 +19,0 @@ ## Setup |
@@ -11,3 +11,5 @@ import { resolve } from 'path' | ||
// Disable parsing `pages/` | ||
this.nuxt.options.build.createRoutes = () => {} | ||
this.nuxt.options.build.createRoutes = () => { | ||
return [] | ||
} | ||
@@ -14,0 +16,0 @@ // Add ${srcDir}/router.js as the main template for routing |
5197
36
2
68