1
聚合物入门套件提供了一个模板开发客户逻辑如何使用节点中的聚合物cli聚合物入门套件并显示应用程序?
聚合物构建创建捆绑和非捆绑的版本。
如何使用表达我使用的一个节点js的应用程序,而在默认情况下失去了PRPL概念的聚合物入门套件提供
由于启动它自己的服务器来运行捆绑版本的聚合物服务器。
With nodejs & Express。下面是我上呈现inital负载HTML在一个正常的客户端 - 服务器应用程序
var express = require('express');
var app = express.createServer();
app.use(express.staticProvider(__dirname + '/public'));
app.get('/', function(req, res) {
res.render('index.html');
});
app.listen(8080, '127.0.0.1')
但对于聚合物入门套件已polymer.json文件定义LILE下面
{
"entrypoint": "index.html",
"shell": "src/my-app.html",
"fragments": [
"src/my-view1.html",
"src/my-view2.html",
"src/my-view3.html",
"src/my-view404.html"
],
"sourceGlobs": [
"src/**/*",
"images/**/*",
"bower.json"
],
"includeDependencies": [
"manifest.json",
"bower_components/webcomponentsjs/webcomponents-lite.min.js"
]
}
如何使用聚合物首发套件生成节点中的捆绑文件夹并显示应用程序?
感谢您回复并回答您自己的问题。这样做之后你有没有机会展示你的文件夹结构? – lee
也想知道你是否仍然使用CLI从命令行运行 – lee