Polymer build不创建捆绑和非捆绑文件夹
我不知道为什么Polymer build不创建捆绑和非捆绑文件夹,polymer,polymer-1.0,Polymer,Polymer 1.0,我不知道为什么polymer build不创建捆绑和非捆绑的文件夹而不给出任何错误 info: Clearing build/ directory... info: (default) Building... info: (default) Build complete! polymer.json { "entrypoint": "index.html", "shell": "src/good-app.html", "fragments": [ "src/
polymer build
不创建捆绑和非捆绑的
文件夹而不给出任何错误
info: Clearing build/ directory...
info: (default) Building...
info: (default) Build complete!
polymer.json
{
"entrypoint": "index.html",
"shell": "src/good-app.html",
"fragments": [
"src/good-home.html",
"src/good-list-item.html",
"src/good-data.html",
"src/lazy-resources.html"
],
"sourceGlobs": [
"src/**/*",
"data/**/*",
"images/**/*",
"bower.json"
],
"includeDependencies": [
"manifest.json",
"bower_components/webcomponentsjs/webcomponents-lite.min.js"
]
}
从
polymer cli
v0.18开始,您可以向polymer.json添加“构建”
"builds": [{
"name": "bundled-es6",
"bundle": true,
"js": {"minify": true, "compile": false},
"css": {"minify": true},
"html": {"minify": true}
},{
"name": "unbundled-es5",
"bundle": false,
"js": {"minify": true, "compile": true},
"css": {"minify": true},
"html": {"minify": true}
}]
您使用哪个版本的
polymer cli
?在新版本0.18
中,您需要添加一些属性,如--bundle
为您的文件创建捆绑文件夹,因为默认情况下,它只创建一个默认
文件夹。键入polymer help build