Nuxt/test/fixtures/module/modules/template/index.js

13 lines
267 B
JavaScript
Raw Normal View History

2018-03-16 16:12:06 +00:00
import path from 'path'
2017-05-21 17:18:26 +00:00
2018-03-16 16:12:06 +00:00
export default function () {
2017-06-29 17:00:18 +00:00
// Disable parsing pages/
this.nuxt.options.build.createRoutes = () => {}
2017-07-17 19:38:02 +00:00
2017-06-29 17:00:18 +00:00
// Add /api endpoint
this.addTemplate({
fileName: 'router.js',
src: path.resolve(this.options.srcDir, 'router.js')
})
2017-05-21 17:18:26 +00:00
}