简体   繁体   中英

polymer vulcanize keep external links

I am using Polymer to build widget in my web app, since I need my web app works with Mozilla and IE I need vulcanize my widget/custom-tags in single file .html, then the polymer frameworks will be include in my file .html. That's fine if I have one single page, but since I need to use Polymer in different web pages that force me to download the framework Polymer more than once. There is a way to vulcanize the page and download Polymer just once? I mean without include the framework into the page but still using external link

thanks

michele

The option you are looking for is the --exclude flag:

vulcanize --exclude "path/to/target/subpath/" --exclude "path/to/target/subpath2/" target.html

It will do exactly what you are asking for.

https://github.com/polymer/vulcanize

Maybe I explain in bad way myself, My achievement is "download the framework Polymer just once" and not in any single web page of my website. the solution I have found is - open the file polymer.html - copy the javascript code - past in a new file ex. polymer.js - go to the web page which use polymer and change the tag in

So that my web pages will download the framework Polymer just once

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM