mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-28 00:22:05 +00:00
36 lines
769 B
JavaScript
36 lines
769 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = function basicModule(options, resolve) {
|
|
// Add vendor (deprecated)
|
|
this.addVendor('lodash')
|
|
|
|
// Add a plugin
|
|
this.addPlugin(path.resolve(__dirname, 'reverse.js'))
|
|
|
|
// Add a layout
|
|
this.addLayout(path.resolve(__dirname, 'layout.vue'))
|
|
|
|
// Extend build
|
|
this.extendBuild((config, { isClient, isServer }) => {
|
|
// Do nothing!
|
|
})
|
|
|
|
// Extend build again
|
|
this.extendBuild((config, { isClient, isServer }) => {
|
|
// Do nothing!
|
|
return config
|
|
})
|
|
|
|
// Extend routes
|
|
this.extendRoutes((routes, resolve) => {
|
|
// Do nothing!
|
|
return routes
|
|
})
|
|
|
|
// Require same module twice
|
|
this.requireModule('~/modules/empty/index.js')
|
|
this.requireModule('~/modules/empty/index.js')
|
|
|
|
resolve()
|
|
}
|