mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-17 18:32:35 +00:00
20 lines
568 B
JavaScript
20 lines
568 B
JavaScript
import path from 'path'
|
|
|
|
import base from './nuxt.config.base.js'
|
|
|
|
export default function(rootDir) {
|
|
const _ = require(rootDir + '/node_modules/lodash')
|
|
|
|
/**
|
|
* Because the nuxt source files are located in the web-frontend directory,
|
|
* but the project is started from another directory we have to explicitly set
|
|
* the source directory which contains the nuxt files and the root directory
|
|
* which contains the node modules.
|
|
*/
|
|
const config = {
|
|
rootDir: rootDir,
|
|
srcDir: path.resolve(__dirname, '../')
|
|
}
|
|
|
|
return _.assign(base, config)
|
|
}
|