Polymer in a packed Chrome app

With the new Material Design, released by Google and Polymer, it is one of the best, if not only, libraries for creating such a design with ease, does anyone have the opportunity to develop a Chrome Pack application using the library to get the Material Design view it provides ? He is currently receiving a script block from Google very strict CSP

+2
source share
4 answers

Check out Vulcanize: http://www.polymer-project.org/articles/concatenating-web-components.html

It is a build tool for chopping HTML imports into a single file. It also has a parameter --cspthat moves <script>to its own file. This will make CSP happy.

+6
source

We are working on a template for the Polymer Chrome app in the Chrome Dev editor: https://github.com/dart-lang/chromedeveditor

I will update this thread as soon as the template is available. This should make Polyymer dev in a Chrome app a lot easier.

+5
source
+1

Investigating ebidel's response to vulcanization, I found that polybuild can be even simpler if you don't want so many extra options.

https://www.polymer-project.org/1.0/docs/tools/advanced#build

Also found this project on github, which uses the latvanize function with the -csp option. https://github.com/PolymerLabs/polymerchromeapp

+1
source

Source: https://habr.com/ru/post/1547498/


All Articles