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-21 15:41:16 +00:00
|
|
|
// Require same module twice
|
|
|
|
this.requireModule('~/modules/empty/index.js')
|
|
|
|
this.requireModule('~/modules/empty/index.js')
|
|
|
|
|
2017-05-14 22:45:01 +00:00
|
|
|
resolve()
|
2017-05-14 22:33:31 +00:00
|
|
|
}
|