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

Setting dest: './' in config deletes the whole project #322

Closed
shiya opened this issue May 2, 2018 · 4 comments
Closed

Setting dest: './' in config deletes the whole project #322

shiya opened this issue May 2, 2018 · 4 comments

Comments

@shiya
Copy link

shiya commented May 2, 2018

  • Your OS: Mac OSX 10.12.6
  • Node.js version: v10.0.0
  • VuePress version: v0.4.1
  • Browser version: Chrome 65
  • Is this a global or local install? Global
  • Which package manager did you use for the install? yarn

Hi :) I was just trying this out and fiddling with the config. If I set dest: './' in .vuepress/config.js hoping that will build my file into the root directory, running vuepress build actually deletes my entire project.

@shiya shiya changed the title Setting dest: './' in config deletes the whole project Setting dest: './' in config deletes the whole project May 2, 2018
@shaodahong
Copy link
Contributor

shaodahong commented May 2, 2018

Build time can delete dest directory, you should set a directory (is not root)

because it is build many times, the root directory is not a good choice

@shiya
Copy link
Author

shiya commented May 2, 2018

Yea, I think there should be a warning at least because some people will attempt that, and if there isn’t a remote git backup everything is gone. I was going to build it to root so it can be served over GitHub pages.

@shaodahong
Copy link
Contributor

I submitted pr, it shouldn't be a warning but an error

@ulivz ulivz closed this as completed in f4de118 May 2, 2018
@shiya
Copy link
Author

shiya commented May 2, 2018

Thanks :D

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

2 participants