1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-17 18:32:35 +00:00
bramw_baserow/web-frontend/config/nuxt.config.production.js
2019-07-10 20:33:38 +02:00

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)
}