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非默认值且public目录不为空时build #341

Closed
zuiidea opened this issue Jul 29, 2017 · 2 comments
Closed

outputPath非默认值且public目录不为空时build #341

zuiidea opened this issue Jul 29, 2017 · 2 comments
Labels

Comments

@zuiidea
Copy link

zuiidea commented Jul 29, 2017

复现步骤

  • roadhog版本1.0.0-beta.7
  • outputPath非默认值,如./dist/1.0.0
  • public目录下有文件
  • roadhog build

结果

EISDIR: illegal operation on a directory, open 'c:\web\sube\dist\1.0.0'

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
...

qq 20170729230328

@zuiidea
Copy link
Author

zuiidea commented Jul 30, 2017

目前的解决方法是

  • 新建一个目录作为public的目录
  • 使用copy-webpack-plugin插件复制到指定目录

@sorrycc
Copy link
Owner

sorrycc commented Jul 30, 2017

手动创建 dist/1.0.0 目录,mkdir -p dist/1.0.0 && npm run build 试试呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants