Fork a Polymer 2 version of gr-app
The webserver can then serve both versions depending on e.g. a URL parameter. Change-Id: I385a1937357077a6c8fa1d54818ab0afb827728b
This commit is contained in:
@@ -79,7 +79,13 @@
|
||||
<link rel="preload" href="{$staticResourcePath}/fonts/Roboto-Medium.woff" as="font" type="font/woff" crossorigin="anonymous">{\n}
|
||||
<link rel="stylesheet" href="{$staticResourcePath}/styles/fonts.css">{\n}
|
||||
<link rel="stylesheet" href="{$staticResourcePath}/styles/main.css">{\n}
|
||||
<script src="{$staticResourcePath}/bower_components/webcomponentsjs/webcomponents-lite.js"></script>{\n}
|
||||
|
||||
{if $polymer2}
|
||||
<script src="{$staticResourcePath}/bower_components/webcomponentsjs-p2/webcomponents-lite.js"></script>{\n}
|
||||
{else}
|
||||
<script src="{$staticResourcePath}/bower_components/webcomponentsjs/webcomponents-lite.js"></script>{\n}
|
||||
{/if}
|
||||
|
||||
// Content between webcomponents-lite and the load of the main app element
|
||||
// run before polymer-resin is installed so may have security consequences.
|
||||
// Contact your local security engineer if you have any questions, and
|
||||
@@ -90,9 +96,18 @@
|
||||
<link rel="import" href="{$assetsPath}/{$assetsBundle}">{\n}
|
||||
{/if}
|
||||
|
||||
<link rel="preload" href="{$staticResourcePath}/elements/gr-app.js" as="script" crossorigin="anonymous">{\n}
|
||||
<link rel="import" href="{$staticResourcePath}/elements/gr-app.html">{\n}
|
||||
{if $polymer2}
|
||||
<link rel="preload" href="{$staticResourcePath}/elements/gr-app-p2.js" as="script" crossorigin="anonymous">{\n}
|
||||
<link rel="import" href="{$staticResourcePath}/elements/gr-app-p2.html">{\n}
|
||||
{else}
|
||||
<link rel="preload" href="{$staticResourcePath}/elements/gr-app.js" as="script" crossorigin="anonymous">{\n}
|
||||
<link rel="import" href="{$staticResourcePath}/elements/gr-app.html">{\n}
|
||||
{/if}
|
||||
|
||||
<body unresolved>{\n}
|
||||
<gr-app id="app"></gr-app>{\n}
|
||||
{if $polymer2}
|
||||
<gr-app-p2 id="app"></gr-app-p2>{\n}
|
||||
{else}
|
||||
<gr-app id="app"></gr-app>{\n}
|
||||
{/if}
|
||||
{/template}
|
||||
|
||||
Reference in New Issue
Block a user