Angular - I can not make the files generated by the build (npm) work on localhost

0

I ran the build command (dev option) and copied the dist folder into the htdocs folder of XAMPP. When calling the project in the browser, the app-root is not recognized and shows nothing on the index page.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Forms</title>
  <!--
  <base href="/">
  -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
  <app-root></app-root>
<script type="text/javascript" src="inline.bundle.js"></script><script type="text/javascript" src="polyfills.bundle.js"></script><script type="text/javascript" src="styles.bundle.js"></script><script type="text/javascript" src="vendor.bundle.js"></script><script type="text/javascript" src="main.bundle.js"></script></body>
</html>
    
asked by anonymous 16.08.2018 / 23:44

0 answers