提交 a50e440c 编写于 作者: C Craig Mulligan 提交者: Tim Neutkens

Pass conf to export function (#2962)

* Pass conf to export function

* conf -> configuration
上级 531d0a30
......@@ -9,9 +9,9 @@ import { renderToHTML } from './render'
import { getAvailableChunks } from './utils'
import { printAndExit } from '../lib/utils'
export default async function (dir, options) {
export default async function (dir, options, configuration) {
dir = resolve(dir)
const config = getConfig(dir)
const config = configuration || getConfig(dir)
const nextDir = join(dir, config.distDir)
log(` using build directory: ${nextDir}`)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册