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

27 lines
496 B
JavaScript
Raw Normal View History

2017-05-14 22:33:31 +00:00
const path = require('path')
2017-05-14 22:45:01 +00:00
module.exports = function basicModule (options, resolve) {
// Add vendor
this.addVendor('lodash')
2017-05-14 22:33:31 +00:00
2017-05-14 22:45:01 +00:00
// Add a plugin
this.addPlugin(path.resolve(__dirname, 'reverse.js'))
2017-05-14 22:33:31 +00:00
2017-05-14 23:01:41 +00:00
// Extend build
this.extendBuild(({isClient, isServer}) => {
// Do nothing!
})
// Extend build again
this.extendBuild(({isClient, isServer}) => {
// Do nothing!
})
// Extend routes
this.extendRoutes((routes, resolve) => {
// Do nothing!
})
2017-05-14 22:45:01 +00:00
resolve()
2017-05-14 22:33:31 +00:00
}