---
title: 解決 window 跟 mac 相衝還境問題
tags: 專案問題解決 分享
---
## <font color=red>**解決 window 跟 mac 相衝還境問題** </font>
如果啟動webpack-dev-sever終端機出現/r的字尾警告,到專案下bin/webpack.rb跟Procfile裡面把CRLF轉成LF。
到VSCode的設定,輸入eol的把預設字尾改成\n
.gitattributes
```
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text
# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
```