如何更改 Sapper + Rollup 中的输出目录?

How to change output directory in Sapper + Rollup?

我试着把rollup.config.js改成

output: {...config.client.output(), dir: __dirname}

它在 __dirname 中放了一些东西,在 ./__sapper__ 中放了一些东西,然后它抛出错误并死掉了。设置 build --output 标志仅设置中间文件输出目录。我是否只需要让它输出到默认文件夹然后复制它 post build?

尝试sapper build my-output-directory