var fs = require('fs')

var file = fs.createWriteStream(__dirname + '/build/index.html')
file.end(makeindex(process.argv[2]))
function makeindex (version) {
  return `<html lang='es'><head>
<meta charset="UTF-8">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#6389c8">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#6389c8">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
<link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="application-name" content="Malvinas">
<meta name="apple-mobile-web-app-title" content="Malvinas">
<meta name="msapplication-starturl" content="/">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="FbGcc4Igo8kKLnyGubgLs8dPPihhPP8GS1gPOHnGJi4" />
<link rel='stylesheet' type='text/css' href='assets/css/main-${version}.css'>
<style type='text/css'>* {
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font: 12px/1 'Montserrat', sans-serif;
  color: #333;
  background: #eaeaea;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Demo Description */


h2 {
  font-size: 18px;
  font-weight: 400;
  color: #999;
}
</style>
<title>Malvinas</title>
</head>

<body>
<div id='main'>
      </div>
	<script defer src='assets/bundle-${version}.js' type='text/javascript'></script>
  <script defer id='state' type='text/javascript'></script>
</body></html>`}

@@ -1283,16 +1283,17 @@
 ' href='
+/
 assets/c
@@ -1317,16 +1317,16 @@
 %7D.css'%3E%0A
-
 %3Cstyle t
@@ -1777,16 +1777,17 @@
 er src='
+/
 assets/b
@@ -1900,16 +1900,457 @@
 script%3E%0A
+  %3Cscript%3E%0A    (function(i,s,o,g,r,a,m)%7Bi%5B'GoogleAnalyticsObject'%5D=r;i%5Br%5D=i%5Br%5D%7C%7Cfunction()%7B%0A        (i%5Br%5D.q=i%5Br%5D.q%7C%7C%5B%5D).push(arguments)%7D,i%5Br%5D.l=1*new Date();a=s.createElement(o),%0A      m=s.getElementsByTagName(o)%5B0%5D;a.async=1;a.src=g;m.parentNode.insertBefore(a,m)%0A        %7D)(window,document,'script','https://www.google-analytics.com/analytics.js','ga');%0A%0A  ga('create', 'UA-85242103-2', 'auto');%0A    ga('send', 'pageview');%0A%0A    %3C/script%3E%0A
 %3C/body%3E%3C

Fix relative assets url