mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 14:45:15 +00:00
27 lines
496 B
JavaScript
Executable File
27 lines
496 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(({isClient, isServer}) => {
|
|
// Do nothing!
|
|
})
|
|
|
|
// Extend build again
|
|
this.extendBuild(({isClient, isServer}) => {
|
|
// Do nothing!
|
|
})
|
|
|
|
// Extend routes
|
|
this.extendRoutes((routes, resolve) => {
|
|
// Do nothing!
|
|
})
|
|
|
|
resolve()
|
|
}
|