Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建时不需要清空指定的 outputPath 目录 #116

Closed
afc163 opened this issue Mar 15, 2016 · 5 comments
Closed

构建时不需要清空指定的 outputPath 目录 #116

afc163 opened this issue Mar 15, 2016 · 5 comments
Milestone

Comments

@afc163
Copy link

afc163 commented Mar 15, 2016

atool-build -o xxx     // xxx 目录内的内容现在会被清空

希望直接构建并覆盖同名文件即可。

@soda-x
Copy link

soda-x commented Mar 15, 2016

按理说清空是一个比较符合预期的行为.
以往的话是需要加个 -c

其实不清空的话很容易把一些历史文件 check 进去.

之前是说通过 xxx && atool-build -o xxx & xxx . 但略奇怪.

@afc163
Copy link
Author

afc163 commented Mar 15, 2016

curl http://www.baidu.com -o xx

类似这样的输出行为,-o 应该不预期任何删除行为。

@sorrycc sorrycc modified the milestone: 0.7.0 Mar 18, 2016
@soda-x
Copy link

soda-x commented Apr 13, 2016

https://github.com/johnagan/clean-webpack-plugin 看到个插件记录下

@zinkey
Copy link
Member

zinkey commented Apr 15, 2016

构建还是先清空比较好。之前 layout 里面都是写的 rm -rf ./dist && build。

@soda-x
Copy link

soda-x commented Apr 20, 2016

atool-build 现在不会删除 outputPath 目录

之后用户自行决定

需要删除的就加

$ rm -rf outputPaht/ && atool-build -o outputPaht

soda-x added a commit that referenced this issue Apr 20, 2016
atool-build would never delete output files, Close #116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants