有个小网站目录结构很简单:
├─ dist
├─ src
├─ webpack.config.js
├─ package-lock.json
├─ package.json
想要部署 dist 的内容,查了下 netlify 的文档。
https://docs.netlify.com/configure-builds/common-configurations/ https://docs.netlify.com/configure-builds/common-configurations/monorepos/
If you work with a codebase that’s configured as a monorepo, you can build on Netlify. Our docs provide setup recommendations for building from a subdirectory or monorepo as well as information on controlling whether or not builds run using an ignore command.
按文档设置如下:
设置之后,build 总是被 canceled 。请大家帮忙看看
1
matthewzhong OP 蠢哭,build command 置空就行,ignore 就是忽略的意思啊
|