Polymer 硫化似乎没有任何作用

Polymer 硫化似乎没有任何作用,polymer,Polymer,我的印象是,如果我硫化我的index.html,它将提取并连接我的html导入。以下是我的索引中的一个片段: <!doctype html> <html unresolved> <head> <base href="/"> <script src="/assets/traceur-runtime.js"></script> <script src="/bower_components/webcompone

我的印象是,如果我硫化我的index.html,它将提取并连接我的html导入。以下是我的索引中的一个片段:

<!doctype html>
<html unresolved>
<head>

  <base href="/">
  <script src="/assets/traceur-runtime.js"></script>
  <script src="/bower_components/webcomponentsjs/webcomponents.js"></script>

  <link rel="import" href="/bower_components/core-icon/core-icon.html">
  <link rel="import" href="/bower_components/core-item/core-item.html">
  <link rel="import" href="/bower_components/core-drawer-panel/core-drawer-panel.html">
  <link rel="import" href="/bower_components/core-toolbar/core-toolbar.html">

它运行时,我尝试了-inline和-csp以及两者,它基本上只是将index.html吐回硫化的.html。如果我做了-strip,它会去除空白,但就是这样。

我从来没有尝试过硫化我的Index.html,我总是有一个elements.html文件,其中包含我的所有导入,最后我将elements.html导入我的主文件

每当我尝试硫化elements.html文件时,它都会按预期工作,将所有元素的定义连接到一个文件中,以减少浏览器必须发出的http请求数

问题可能是您使用的是最新版本的Volcan,该版本已在上进行了修改,-csp功能已自行移动到独立的cli应用程序,-strip也已移动到html minifier应用程序

你可能想看看。

啊哈,我想出来了-我当时在使用href=/bower\u components/core icon/core-icon.html,而我本应该使用href=bower\u components/core icon/core-icon.html

请注意缺少前导斜杠。现在我只需要弄清楚如何连接它,这样它就可以正确地找到bower_组件

dist/
  index.html
  bower_components/