D
D
danilr2019-06-23 15:35:47
Vue.js
danilr, 2019-06-23 15:35:47

How to run website after build using @vue/cli?

I installed the @vue/cli package, started serve - everything seems to be fine - it displays in the browser. I did run build - I sort of built it, the dist folder appeared, but when I run the index.html file in it, the page is empty. Help me figure out why and how to launch the site after the build?
What I don’t understand here is why, after installing and creating the application via @vue/cli, there is not a single js file connected in the index.html file?

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <link href="css/normalize.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    <title>meatfood</title>
  </head>
  <body>
    <noscript>
      <strong>We're sorry but meatfood doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YoloV, 2019-06-23
@YoloV

Show your webpack config

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question