generator-polymer | Scaffold out a Polymer project | Web Framework library
kandi X-RAY | generator-polymer Summary
kandi X-RAY | generator-polymer Summary
Polymer is a library of polyfills and sugar which enable the use of Web Components in modern browsers. The project allows developers to build apps using the platform of tomorrow and inform the W3C of places where in-flight specifications can be further improved. generator-polymer provides Polymer scaffolding using Yeoman (a scaffolding tool for the web), letting you easily create and customize Polymer (custom) elements via the command-line and import them using HTML Imports. This saves you time writing boilerplate code so you can start writing up the logic to your components straight away.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Rewrite with the given line object .
- Rewrite arguments .
- Escape string and replace special characters in a string
generator-polymer Key Features
generator-polymer Examples and Code Snippets
Community Discussions
Trending Discussions on generator-polymer
QUESTION
Can anyone point me to a tutorial that uses Polymer 2 and polymer-build
from Polymer CLI? When I use any example in the polymer-starter-kit
and use polymer serve
, it works fine; but when I use polymer build
and serve the bundled
or unbundled
directory, I get 404
errors. I have even updated to the newest alpha version of polymer-cli
.
Also, using https://github.com/tony19/generator-polymer-init-2-x-app generators have the same problem.
...ANSWER
Answered 2017-Jan-25 at 01:53I noticed a bug in the generator in that the starter-kit
subgenerator was missing a dependency on webcomponentsjs
, which would cause an error with polymer-build
. And as you discovered, polymer.json
was also missing dependencies for the polyfill support of webcomponentsjs
, which caused 404s on polyfilled browsers (such as Linux Chrome). That's all fixed now in v0.0.6
.
You'll also need a version of polymer-build
that does not try to uglify
the JavaScript, which would fail due to its inability to recognize ES6. The new-build-flags
branch of the polymer-cli
repo replaces uglify
with babili
for ES6 minification (added in PR#525). You could check out that branch and build it yourself, or you could install it from here:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install generator-polymer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page