Невозможно отобразить целое веб-приложение при попытке обслужить полимерное веб-приложение с помощью firebase serve: firebase serve
Эта команда отображает только часть кода в браузере.Он не запускает команду сценария для отображения страниц веб-приложения.
отображает все веб-приложение при запуске в режиме npm в браузере
Это мой index.html
<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!doctype html>
<html lang="en">
<head>
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzfddfdfbdfbaSyAcfzb6qhAaw0XzrQXvXB5m-oEVVgPyRfc",
authDomain: "test-for-autism.firebaseapp.com",
databaseURL: "https://test-for-autism.firebaseio.com",
projectId: "test-for-autism",
storageBucket: "test-for-autdfdgdfgism.appspot.com",
messagingSenderId: "446840796343"
};
firebase.initializeApp(config);
</script>
<!-- Firebase App is always required and must be first -->
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-app.js"></script>
<!-- Add additional services that you want to use -->
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-messaging.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-functions.js"></script>
<!-- Comment out (or don't include) services that you don't want to use -->
<!-- <script src="https://www.gstatic.com/firebasejs/5.9.2/firebase-storage.js"></script> -->
<script>
var config = {
// ...
};
firebase.initializeApp(config);
</script>
<meta charset="utf-8">
<base href="/">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>TEST FOR AUTISM</title>
<meta name="description" content="Polymer tfa Demo">
<link rel="shortcut icon" sizes="32x28" href="images/tfa-icon-32.jpg">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@Polymer">
<meta property="og:type" content="website">
<meta property="og:site_name" content="tfa">
<meta name="theme-color" content="#000">
<link rel="manifest" href="manifest.json">
<style>
body {
margin: 0;
background-color: #FAFAFA;
color: #383838;
font-family: Georgia;
min-height: 100vh;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* styling for render while resources are loading */
tfa-app[unresolved] {
display: block;
height: 45px;
padding-top: 40px;
padding-left: 10px;
font-size: 39px;
font-weight: 600;
letter-spacing: 10px;
text-align: center;
}
/* mobile */
@media (max-width: 767px) {
body {
background-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 15%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.7) 48%, rgba(0,0,0,1) 60%);
background-repeat: no-repeat;
background-size: 100% 100vh;
}
body.fixed-viewport-height {
background-size: 100% 600px;
}
tfa-app[unresolved] {
height: 22px;
padding-top: 21px;
font-size: 20px;
color: #FFF; /* --app-cover-text-color */
}
}
</style>
</head>
<body>
<tfa-app unresolved app-title="TEST FOR AUTISM">L O A D I N G</tfa-app>
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script type="module" src="src/tfa-app.js"></script>
</body>
</html>