After starting the service, you will see that the page source code is like this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>my-vue-project</title>
</head>
<body>
<p id="app"></p>
<!-- <p id="luffy"></p> -->
<!-- built files will be auto injected -->
<script type="text/javascript" src="/app.js"></script></body>
</html>
, it should be generated through webpack, but I can’t find the generated file. Where is it? If you develop under this official directory, you should publish the webpack package when publishing the project, but what if the packaged index.html and app.js are not found? ? Please help~~The path of webpack configuration is under the dist directory, but dist is not found. Please explain!
1. You will not be able to find this file when npm run dev starts the service locally.
2. The file path after executing npm run build and packaged can be viewed in config/index.js
npm run build
It’s ready in no time.npm run dev does not generate files by default.
npm run build will generate the dist directory by default