問題タブ [vulcanize]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - JSエラーで一口クリッパーが壊れる
ポリマー要素を記述するときに、gulp で vulcanize を使用して html ファイルから js を抽出します。ただし、js 内にエラーがある場合、vulcanize は完了せず、ビルド プロセスが中断されます。私の理解では、vulcanize は単に script タグ内のすべてを新しいファイルに移動し、それを lint することができましたが、そうではないことが示されています。誰もこれに対する解決策を知っていますか?
polymer - Vulcanize が web-animation.js へのリンクを解決しない
バルカナイズ 1.14.7
プロジェクトで paper-dropdown-menu を使用しようとしています。index.html にインポートされた components.html ファイルで vulcanize を使用します。Vulcanize は、web-animations.js ファイルを除くすべての適切なファイルを正しく連結します。ブラウザ コンソールに次のエラーが表示されます。
このエラーは、加硫されたファイルが原因です。
opaque-animation の定義のすぐ上
次の構成でgulpで加硫しています
config.paths.dist は私の dist ディレクトリであり、webComponentIndex はもちろん、このアニメーション ファイル以外のすべてを正しくバンドルするバンドルされた出力ファイルです。このプロセスを正しく理解していれば、animations.js ファイルは他のすべてのものと連結されているはずですが、連結されていません。
javascript - Vulcanize は繰り返されるスクリプトを生成します
2 つの Polymer カスタム要素を作成しました。どちらも moment.js を使用しています。したがって、次のように、両方の要素でそれを参照しました:
<script src="../../bower_components/moment/min/moment.min.js"></script>
単一のインポート ファイル element.html を生成するために vulcanize を使用します。問題は、加硫されたファイルに moment.js のコンテンツが 2 回表示されることです。これは正しいです?それを回避する方法はありますか?
node.js - ポリマーウェブコンポーネントのバンドル
node/express を使用して Web アプリケーションを開発しています。現在、css、js アセットを管理するために、内部的に mincer ( https://github.com/nodeca/mincer )を使用する connect-assets ( https://github.com/adunkman/connect-assets ) を使用しています。加硫を使用して束ねられたポリマー コンポーネントを管理するように拡張できますか? これを機能させる方法についての指示は大歓迎です。
javascript - Decrease load time of an Polymer 1.X app
I have a Polymer application, and I would like to find the easiest possible path to decrease load times.
The app is online (although it's TOTALLY unfinished): http://www.entertainers.biz/
At the moment, load times are geological.
I tried polymer build
, but only got marginal improvements. The problem is that fetching the app is 219 request (two hundred and nine-teen!).
Ideally, I would turn the two main files (my-main.html and my-app.html) into something static. I experimented with vulcanize, and when I tried to vulcanize one or the other, the whole thing basically stopped working.
Another approach would be to create a file that includes everything needed by my-app and my-main in terms of imports (and just those), and then include the vulcanised version of those, so that those become one call (of around 1Mb).
Am I missing something totally obvious?