I'm deploying a very basic Vue application on Cloud Foundry. Here is the one-page Vue application:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
<script src="static/vue.js"></script>
</head>
<body>
<div id="app">
{{ message }}
</div>
<script>
var app = new Vue({
el: '#app',
data: {
message: 'Hello Vue!'
}
})
</script>
</body>
</html>
Where vue.js is https://cdn.jsdelivr.net/npm/vue .
This is the result when I try to visualize the deployed application:
In Chrome <div id="app">
is replaced with <!---->
.
I tried to see if the vue.js file gets executed in Chrome and it is executed. I can't understand why I get two different behavior in production. When I run the app locally it works well in both of the browser.
Thank you