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
|
2017-05-21 17:18:26 +00:00
|
|
|
this.extendBuild((config, { isClient, isServer }) => {
|
2017-05-14 23:01:41 +00:00
|
|
|
// Do nothing!
|
|
|
|
})
|
|
|
|
|
|
|
|
// Extend build again
|
2017-05-21 17:18:26 +00:00
|
|
|
this.extendBuild((config, { isClient, isServer }) => {
|
2017-05-14 23:01:41 +00:00
|
|
|
// Do nothing!
|
|
|
|
})
|
|
|
|
|
|
|
|
// Extend routes
|
|
|
|
this.extendRoutes((routes, resolve) => {
|
|
|
|
// Do nothing!
|
|
|
|
})
|
|
|
|
|
2017-05-21 15:41:16 +00:00
|
|
|
// Require same module twice
|
2017-06-29 17:00:18 +00:00
|
|
|
this.requireModule('@/modules/empty/index.js')
|
|
|
|
this.requireModule('@/modules/empty/index.js')
|
2017-05-21 15:41:16 +00:00
|
|
|
|
2017-05-14 22:45:01 +00:00
|
|
|
resolve()
|
2017-05-14 22:33:31 +00:00
|
|
|
}
|