Questions tagged [vulcanize]

25 questions
5
votes
1 answer

How to implement error tracking in a polymer?

Is there a way of error tracking in Polymer? Problem is that apparently vulcanize and polybuild processes couldn't provide any source-maps (Please correct me if I'm wrong). That means that even if I will catch an exception in vulcanized java script…
31415926
  • 3,811
  • 7
  • 47
  • 78
5
votes
0 answers

Is there a way to flatten inherited jinja template?

I have jinja templates that inherits from a base template. Just straightforward extend. For example, in setting.html: {% extends "templates/base.html" %} But this trips up polymer's vulcanizer, which doesn't understand the inheritance. So, is…
Henry Chang
  • 379
  • 5
  • 16
3
votes
1 answer

Uncaught TypeError: Cannot read property 'trim' of undefined after using Polymer vulcanize

My application based on Polymer-PSK+ and ES2015. Using my distributed version of the application I'll receive the following error: Uncaught TypeError: Cannot read property 'trim' of undefined (elements.js line 5832) The reason for this is due to…
DoK
  • 851
  • 3
  • 15
  • 31
3
votes
2 answers

How to get gulp-vulcanize to ignore socket.io.js?

One of my .html files imports /socket.io/socket.io.js, I want to vulcanize this file but ignore the script tag that imports socket.io I wrote the following gulp task: // vulcanize HTML files var vulcanizeHtmlSrc = 'views/**/*.html', …
Karthik Balakrishnan
  • 4,353
  • 6
  • 37
  • 69
2
votes
2 answers

Am I paranoid? "Brutally" big Polymer website after Vulcanize. What can I do to fix it?

Maybe I'm paranoid. I always like to have my code as slim as possible. I always target my websites to be under 1.5 MB (All images compressed and resized as appropriate(. I started working with Polymer the month before thinking that I could shave off…
Jose A
  • 10,053
  • 11
  • 75
  • 108
2
votes
1 answer

Vulcanize does not resolve link to web-animation.js

Vulcanize 1.14.7 I'm trying to use paper-dropdown-menu in a project. Using vulcanize on a components.html file which is imported into my index.html. Vulcanize correctly concatenates all the appropriate files except for the web-animations.js file. I…
Chris Root
  • 617
  • 6
  • 16
2
votes
1 answer

Jekyll + Polymer + Vulcanize - How does this work?

I just started integrating Polymer into my Jekyll environment. Essentially, I created a bower.json file in my Jekyll root that calls for followingdepencendies: ... ], "dependencies": { "iron-elements":…
JohnnyDeer
  • 231
  • 4
  • 14
2
votes
1 answer

Vulcanize, what's the point?

Just in general why would one consider to vulcanize a web page. For example now I am building a website that is about 629kb, in 975ms(under 30m/s wifi network), with 93 requests. After vulcanizing my page, it becomes 964kb, in 2.02s load time, but…
Rex
  • 238
  • 2
  • 13
1
vote
0 answers

Gulp to version filename and replace links

For any URL which doesn't start with /static, I serve this index.html: Title ... Note: the / in…
Cheetah
  • 13,785
  • 31
  • 106
  • 190
1
vote
0 answers

Is it possible to prevent external scripts from being inlined with polymer-cli?

We're using polymer-cli to do our polymer app builds. I've previously used vulcanize directly with a project that used just a few Polymer components, and it had flags to inline external scripts and to exclude some scripts from being…
Martin Bayly
  • 2,413
  • 3
  • 19
  • 19
1
vote
0 answers

Vulcanize reusable elements in production

I have a custom element (my-element), and this folder structure: my-element ├── bower_components │ ├── paper-menu │ ├── paper-checkbox ├── my-element.html My element uses the above two paper-elements, but it imports them by the canonical…
the-catalin
  • 1,178
  • 11
  • 18
1
vote
0 answers

Polymer web component bundling

I am using node/express to develop a web application. I am currently using connect-assets (https://github.com/adunkman/connect-assets) which internally uses mincer (https://github.com/nodeca/mincer), to manage css, js assets. Can it be extended to…
Chamindu
  • 716
  • 1
  • 5
  • 13
1
vote
1 answer

In Polymer 1.0 why does my vulcanized page not show in IE when using webcomponents-lite.js

I am trying to move to use webcomponents-lite.js, but have problems when vulcanizing it. I have boiled it down to the following:
Franz Thomsen
  • 484
  • 1
  • 6
  • 17
1
vote
2 answers

Vulcanize local Polymer app

We use Polymer to build a local app. Each Polymer element has a .html and .css (compiled from .scss) file. Does the use of vulcanize (it concatenates the JS and Polymer elements into one file) provide an advantage? Does the use of some minify tool…
tenhobi
  • 1,977
  • 3
  • 23
  • 49
0
votes
1 answer

Polymer issue importing scripts outside of primary Vulcanized bundle

When developing polymer webcomponents, I eventually run them through vulcanize to be served on production. unfortunately this causes a issue for me when I would like to use two separate bundles. I have for example a base.html file that contains all…
Andre
  • 1,292
  • 1
  • 17
  • 34
1
2