Gulp 吞咽聚合物构建未生成预期捆绑?

Gulp 吞咽聚合物构建未生成预期捆绑?,gulp,polymer,Gulp,Polymer,我有下面的gulp任务(请参见下文),我正试图运行它来自动化聚合物构建。但是,我在生成的/build文件夹中看到的只是index.html。没有依赖关系,我的印象是,生成的文件将被称为shared-bundle.html。此外,它不会获取我的任何bower依赖项: const PolymerProject = require('polymer-build').PolymerProject; const project = new PolymerProject(require('./polymer

我有下面的gulp任务(请参见下文),我正试图运行它来自动化聚合物构建。但是,我在生成的/build文件夹中看到的只是index.html。没有依赖关系,我的印象是,生成的文件将被称为shared-bundle.html。此外,它不会获取我的任何bower依赖项:

const PolymerProject = require('polymer-build').PolymerProject;
const project = new PolymerProject(require('./polymer.json'));
gulp.task('build', () => {
    mergeStream(project.sources(), project.dependencies())
        .pipe(project.bundler())
        .pipe(gulp.dest('./build/'));
});
这是我参考的文档:


你知道我可能遗漏了什么吗

显然我只是错过了这里的入口点参数:

const project = new PolymerProject({entrypoint: 'my-page.html'});

为什么不直接将
入口点添加到
polymer.json