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

13 lines
274 B
JavaScript
Raw Normal View History

2017-05-21 17:18:26 +00:00
const path = require('path')
module.exports = 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
}