8c14386ea7
With Buck, we won't easily be able to follow the <!-- build:js --> directive in index.html to combine multiple .js files into a single app.js. Instead, move those includes into the top-level component gr-app.html, so vulcanize will simply inline them. This leaves index.html as a simple unvulcanized shim that will just load the polyfills and the top-level app. After this change, we can vulcanize gr-app.html and just swap out one path in index.html, otherwise serving it as-is. Change-Id: I782c4bbd259c03c2d7e2d33342462510a91f32e3
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<!--
|
|
Copyright (C) 2015 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<html lang="en">
|
|
<meta charset="utf-8">
|
|
<meta name="description" content="Gerrit Code Review">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>PolyGerrit</title>
|
|
|
|
<!-- build:css /styles/main.css -->
|
|
<link rel="stylesheet" href="/styles/main.css">
|
|
<!-- endbuild-->
|
|
|
|
<!-- build:js /bower_components/webcomponentsjs/webcomponents-lite.min.js -->
|
|
<script src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
|
|
<!-- endbuild -->
|
|
|
|
<!-- Use Shadow DOM where supported.
|
|
https://www.polymer-project.org/1.0/docs/devguide/settings.html -->
|
|
<!--<script>
|
|
window.Polymer = window.Polymer || {};
|
|
window.Polymer.dom = 'shadow';
|
|
</script>-->
|
|
|
|
<!-- will be replaced with elements/gr-app.vulcanized.html -->
|
|
<link rel="import" href="/elements/gr-app.html">
|
|
<!-- endreplace-->
|
|
|
|
<body unresolved>
|
|
<template is="dom-bind" id="app">
|
|
<gr-app params="{{params}}" route="{{route}}"></gr-app>
|
|
</template>
|