Nuxt/test/fixtures/module/modules/basic/index.js
Sébastien Chopin c5b5913402 Update test
2017-05-21 19:18:26 +02:00

27 lines
516 B
JavaScript
Executable File

const path = require('path')
module.exports = function basicModule (options, resolve) {
// Add vendor
this.addVendor('lodash')
// Add a plugin
this.addPlugin(path.resolve(__dirname, 'reverse.js'))
// Extend build
this.extendBuild((config, { isClient, isServer }) => {
// Do nothing!
})
// Extend build again
this.extendBuild((config, { isClient, isServer }) => {
// Do nothing!
})
// Extend routes
this.extendRoutes((routes, resolve) => {
// Do nothing!
})
resolve()
}