2016-11-14 8 views
6

내 응용 프로그램에 폴리머 스타터 키트 템플릿을 사용하고있는 상황이 있습니다. 내 polymer.json 파일은 다음과 같습니다번들 빌드 폴더에 my-app.html이 없습니다.

{ 
     "entrypoint": "index.html", 
     "shell": "src/my-app.html", 
     "fragments": [ 

     ], 
     "sourceGlobs": [ 
     "src/**/*", 
     "images/**/*", 
     "bower.json" 
     ], 
     "includeDependencies": [ 
     "manifest.json", 
     "bower_components/webcomponentsjs/webcomponents-lite.min.js" 
     ] 
    } 

나는 폴리머 CLI 명령을 사용하여 빌드 - '폴리머 빌드', 번들 폴더는 쉘 파일 '내-app.html'을 그리워하는 것 같다. 나는 polymer.json 파일에서

"shell": "src/my-app.html", 

을 제거하면

, 내-app.html 파일은 정상적으로 그러나 index.html 파일이 실종 번들/src 폴더에 생성됩니다.

저는 polymer-starter-kit 템플릿을 사용하고 파일을 추가하고 있습니다. polymer.json의 구성 방법에 따라 my-app.html 또는 index.html이없는 이유를 알 수 없습니다.

여기에 무슨 문제가 있습니까?

감사합니다.

+0

동일한 문제가 있습니다. –

+0

''src'/my-app.html''을'fragments' 섹션에 추가 해보았습니까? 나는 대개 모든 사용자 정의 요소를 거기에 넣습니다. – alesc

+0

PSK를 사용하여 처음부터 다시 시작했습니다. 나는 '폴리머 빌드 (polymer build)'가 예상대로 작동하고 점진적으로 변경된 PSK로 작업하고 있는지 확인했습니다. – sandav

답변

4

어제와 같은 문제가 있었는데 polymer.json에있는 URL 앞에 "/"를 추가했습니다.

{ 
    "entrypoint": "index.html", 
    "shell": "/src/my-app.html", 
    "fragments": [ 
    "/src/my-app.html", 
    "/src/my-home.html", 
    "/src/my-shop.html" 
    ], 
    "sourceGlobs": [ 
    "src/**", 
    "src/**/*", 
    "src/structure/**/*", 
    "images/**/*", 
    "bower.json" 
    ], 
    "includeDependencies": [ 
    "manifest.json", 
    "bower_components/webcomponentsjs/webcomponents-lite.min.js" 
    ] 
} 

난 단지 "/"쉘에서 & 조각 부분을 추가하고 일했다.

도움이되기를 바랍니다.

건배.