2

バルカナイズ 1.14.7

プロジェクトで paper-dropdown-menu を使用しようとしています。index.html にインポートされた components.html ファイルで vulcanize を使用します。Vulcanize は、web-animations.js ファイルを除くすべての適切なファイルを正しく連結します。ブラウザ コンソールに次のエラーが表示されます。

http://localhost:9005/bower_components/web-animations-js/web-        animations-next-lite.min.js 
Failed to load resource: the server responded with a status of 404 (Not Found)

このエラーは、加硫されたファイルが原因です。

<script src="../../bower_components/web-animations-js/web-animations-next-lite.min.js"></script>

opaque-animation の定義のすぐ上

Polymer({

is: 'opaque-animation',

次の構成でgulpで加硫しています

gulp.task('web_components', () =>
 gulp.src(config.paths.webComponentIndex)
  .pipe(vulcanize({
    abspath: config.paths.dist,
    excludes: [],
    inlineScripts: true,
    stripExcludes: false
  }))
  .pipe(gulp.dest(config.paths.dist))
);

config.paths.dist は私の dist ディレクトリであり、webComponentIndex はもちろん、このアニメーション ファイル以外のすべてを正しくバンドルするバンドルされた出力ファイルです。このプロセスを正しく理解していれば、animations.js ファイルは他のすべてのものと連結されているはずですが、連結されていません。

4

1 に答える 1