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

请问保存文件时权限应该如何设置呢? #25

Open
Yi-Frank opened this issue Sep 17, 2018 · 2 comments
Open

请问保存文件时权限应该如何设置呢? #25

Yi-Frank opened this issue Sep 17, 2018 · 2 comments

Comments

@Yi-Frank
Copy link

大神~~权限可以改嘛? 目前我看到是用的运行者默认的文件权限..0644

@Yi-Frank
Copy link
Author

_20180917152438

如果要修改的话是修改这里嘛? /lib/helper/engine.js里的

  var _writeFile = function(output, outFonts) {
    _.each(outFonts, function(font, type) {
      fs.writeFileSync(output + '.' + type, font, {mode: 438})
    })
  }

这样对嘛 ?

@Yi-Frank
Copy link
Author

-rw-r--r-- 1 root root  84712 Sep 17 15:36 ZH-ss.eot
-rw-r--r-- 1 root root 253467 Sep 17 15:36 ZH-ss.svg
-rw-r--r-- 1 root root  84544 Sep 17 15:36 ZH-ss.ttf
-rw-r--r-- 1 root root  57472 Sep 17 15:36 ZH-ss.woff

貌似不行...大神如果看到的话麻烦帮忙看下吧...谢谢啦...

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

1 participant