如何在 Polymer Start Kit 中查看 Polymer 元素的演示页面?

How do you view a Polymer element's demo page in Polymer Start Kit?

完成后:

cd polymer-starter-kit-1.0.3
npm install -g gulp bower && npm install && bower install
gulp serve

如何浏览和查看元素的演示页面,例如:

http://localhost:3000/bower_components/paper-input/demo/

查看上面URL的源码时,显示的是相对于demo目录的路径,形式为:

<link rel="stylesheet" href="styles/main.css">
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="elements/elements.html">

您需要做什么才能正确解析路径?

在 URL 的末尾包含 index.html

http://localhost:3000/bower_components/paper-input/demo/index.html