2016-08-30 4 views
0

여기 내 manifest.json 파일입니다크롬이이 manifest.json 파일을 인식하지 못하는 이유는 무엇입니까?

{ 
    "name":"Name", 
    "version": "1.0", 
    "description":"This is the description", 
    "manifest-version": 2 
} 

크롬

매니페스트 파일이 없거나 읽을 수

파일이 아니라 .txt 파일보다, 참으로 .json 파일 말한다 . 내 매니 페스트 .json 파일에 무슨 문제가 있습니까?

+0

대괄호 []가 필요합니다. –

답변

0

매니페스트 파일 당신은 코드에서 manifest-json 대신 manifest_json이 없거나 읽을 수

된다.

this tutorial을 따르는 경우 Chrome 확장을위한 간단한 manifest.json이 표시됩니다. 아래 스 니펫에서 이름, 설명, 아이콘, URL을 자신의 것으로 대체하고 사용해보십시오.

{ 
    "name": "Great App Name", 
    "description": "Pithy description (132 characters or less, no HTML)", 
    "version": "0.0.0.1", 
    "manifest_version": 2, 
    "icons": { 
    "128": "icon_128.png" 
    }, 
    "app": { 
    "urls": [ 
     "http://mysubdomain.example.com/" 
    ], 
    "launch": { 
     "web_url": "http://mysubdomain.example.com/" 
    } 
    } 
} 

튜토리얼을 읽는 데 어려움이 있으면 알려주십시오.

관련 문제