Chrome打包应用中的聚合物 [英] Polymer in a Chrome packaged app

查看:108
本文介绍了Chrome打包应用中的聚合物的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google和Polymer发布的新Material Design是最好的(如果不是唯一的)库之一,可以轻松创建这样的设计,是否有人使用该库开发Chrome Packaged App以获得Material Design外观它提供?目前,它通过Google非常严格的CSP获取脚本块

With the new Material Design released by Google and Polymer being one of the best, if not only, libraries to create such a design with ease, is there anyone to develop a Chrome Packaged App using the library to get the Material Design look it provides? Currently, it gets scripted block by Google's very strict CSP

推荐答案

查看Vulcanize: http://www.polymer-project.org/articles/concatenating-web-components.html

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

这是一个用于将HTML导入压缩到单个文件中的构建工具。它还有一个 - csp 选项,可将< script> 移动到自己的文件中。这将使CSP满意。

It's a build tool for crushing HTML imports into a single file. It also has a --csp option that moves <script> into its own file. This will make CSP happy.

这篇关于Chrome打包应用中的聚合物的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆