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

.roadhogrc配置信息格式太严格了 #19

Closed
codering opened this issue Dec 16, 2016 · 3 comments
Closed

.roadhogrc配置信息格式太严格了 #19

codering opened this issue Dec 16, 2016 · 3 comments

Comments

@codering
Copy link
Contributor

codering commented Dec 16, 2016

{
    "disableCSSModules": true,
    "autoprefixer": {
        "browsers": [
            "last 4 versions", 
            "Firefox ESR", 
            "> 1%", 
            "ie >= 8", 
            "iOS >= 8",
            "Android >= 4"
       ]
    },
    aa: "a"
}

必须完全是json标准格式,key必须要用双引号包裹,value如果是有字符串类型也必须用双引号包裹。

@sorrycc
Copy link
Owner

sorrycc commented Dec 16, 2016

rc 配置应该都这样的,.babelrc, .eslintrc 等。

@codering
Copy link
Contributor Author

好吧,被js编写方式惯坏了。

@sorrycc
Copy link
Owner

sorrycc commented Dec 16, 2016

除了注释可以写,其他都和 JSON 一样。

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